<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[utf8]]></title><description><![CDATA[<p>Hi,</p>
<p>wie kann ich in C++ pruefen ob ein string utf8 ist?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/312920/utf8</link><generator>RSS for Node</generator><lastBuildDate>Sun, 02 Aug 2026 12:01:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/312920.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Jan 2013 11:35:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to utf8 on Thu, 17 Jan 2013 11:35:38 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>wie kann ich in C++ pruefen ob ein string utf8 ist?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2290599</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2290599</guid><dc:creator><![CDATA[Coder1]]></dc:creator><pubDate>Thu, 17 Jan 2013 11:35:38 GMT</pubDate></item><item><title><![CDATA[Reply to utf8 on Thu, 17 Jan 2013 11:49:47 GMT]]></title><description><![CDATA[<p>Definitiv feststellen lässt sich das nicht. Aber schau Dir mal die bunte Tabelle auf <a href="http://de.wikipedia.org/wiki/UTF-8" rel="nofollow">http://de.wikipedia.org/wiki/UTF-8</a> an. Wenn in Deinem String nur die grünen, braunen und blauen Bytes vorkommen ist die Wahrscheinlichkeit recht hoch, dass es sich um UTF-8 handelt. Zusätzlich kannst Du noch prüfen, ob immer genau die richtige Anzahl Folgebytes auf ein Startbyte folgen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2290602</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2290602</guid><dc:creator><![CDATA[SG1]]></dc:creator><pubDate>Thu, 17 Jan 2013 11:49:47 GMT</pubDate></item><item><title><![CDATA[Reply to utf8 on Thu, 17 Jan 2013 12:20:12 GMT]]></title><description><![CDATA[<p>ok,<br />
<a href="http://www.w3.org/International/questions/qa-forms-utf-8" rel="nofollow">http://www.w3.org/International/questions/qa-forms-utf-8</a></p>
<p>warum prueft man hier ob das byte innerhalb von folgenden bereich liegt fuer ASCII?<br />
if((byte[0] == 0x09 || byte[0] == 0x0A || byte[0] == 0x0D || byte[0] == 0x20) &amp;&amp; 0xx7E)</p>
<p>warum kann ich hier nicht zwischen 0 und 127 pruefen? if((byte[0] &gt;= 0x00 &amp;&amp; byte[0] &lt;= 0xx7E) ??</p>
<p>das encoding ist ja:<br />
U+0000-U+007F 0xxxxxxx ... ASCII</p>
<p>ohne auf die folge bytes nun ein zu gehen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2290617</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2290617</guid><dc:creator><![CDATA[Coder1]]></dc:creator><pubDate>Thu, 17 Jan 2013 12:20:12 GMT</pubDate></item><item><title><![CDATA[Reply to utf8 on Thu, 17 Jan 2013 12:28:09 GMT]]></title><description><![CDATA[<p>Coder1 schrieb:</p>
<blockquote>
<p>if((byte[0] == 0x09 || byte[0] == 0x0A || byte[0] == 0x0D || byte[0] == 0x20) &amp;&amp; 0xx7E)</p>
</blockquote>
<p>ist was anderes als</p>
<pre><code>[\x09\x0A\x0D\x20-\x7E]            # ASCII
</code></pre>
<p>Bei ASCII liegen im Bereich 0 bis 0x1F nicht-druckbare Sonderzeichen, die in Formulardaten wohl eh nie vorkommen. Mit Ausnahme von Tabulator und Zeilenumbruch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2290622</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2290622</guid><dc:creator><![CDATA[SG1]]></dc:creator><pubDate>Thu, 17 Jan 2013 12:28:09 GMT</pubDate></item></channel></rss>