<?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[C++11 und UTF-8]]></title><description><![CDATA[<p>Mit C++11 wurden ja nun UTF-8 Literale eingeführt, was ja auch langsam mal Zeit war. Allerdings frage ich mich gerade, ob es dafür auch passende string Typen gibt? Ich kann keine finden. Wie macht ihr das, wenn ihr mit UTF-8 arbeitet? std::string als besseren Container nutzen und alle Operationen als freie Funktionen implementieren? Oder nutzt ihr vielleicht gleich vector&lt;char&gt;? Oder habt ihr euch eine eigene Klasse geschrieben?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/314798/c-11-und-utf-8</link><generator>RSS for Node</generator><lastBuildDate>Fri, 31 Jul 2026 22:29:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/314798.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Mar 2013 10:25:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++11 und UTF-8 on Thu, 14 Mar 2013 10:25:48 GMT]]></title><description><![CDATA[<p>Mit C++11 wurden ja nun UTF-8 Literale eingeführt, was ja auch langsam mal Zeit war. Allerdings frage ich mich gerade, ob es dafür auch passende string Typen gibt? Ich kann keine finden. Wie macht ihr das, wenn ihr mit UTF-8 arbeitet? std::string als besseren Container nutzen und alle Operationen als freie Funktionen implementieren? Oder nutzt ihr vielleicht gleich vector&lt;char&gt;? Oder habt ihr euch eine eigene Klasse geschrieben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2306607</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2306607</guid><dc:creator><![CDATA[Unicodler]]></dc:creator><pubDate>Thu, 14 Mar 2013 10:25:48 GMT</pubDate></item><item><title><![CDATA[Reply to C++11 und UTF-8 on Thu, 14 Mar 2013 10:41:10 GMT]]></title><description><![CDATA[<p>std::wstring</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2306612</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2306612</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Thu, 14 Mar 2013 10:41:10 GMT</pubDate></item><item><title><![CDATA[Reply to C++11 und UTF-8 on Thu, 14 Mar 2013 10:47:14 GMT]]></title><description><![CDATA[<p>Skym0sh0 schrieb:</p>
<blockquote>
<p>std::wstring</p>
</blockquote>
<p>ROFL <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2306613</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2306613</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Thu, 14 Mar 2013 10:47:14 GMT</pubDate></item><item><title><![CDATA[Reply to C++11 und UTF-8 on Thu, 14 Mar 2013 10:53:06 GMT]]></title><description><![CDATA[<p>2.14.5 String literals</p>
<pre><code>7 A string literal that begins with u8, such as u8&quot;asdf&quot;, is a UTF-8 string 
literal and is initialized with the given characters as encoded in UTF-8.
8 Ordinary string literals and UTF-8 string literals are also referred to as 
narrow string literals. A narrow string literal has type “array of n const char”, 
where n is the size of the string as defined below, and has static storage duration (3.7).
</code></pre>
<p>kann man also ganz normal std::string zum Speichern verwenden</p>
<p>für die Verarbeitung gibt es dann <a href="http://en.cppreference.com/w/cpp/string/multibyte" rel="nofollow">http://en.cppreference.com/w/cpp/string/multibyte</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2306614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2306614</guid><dc:creator><![CDATA[dd++ 0]]></dc:creator><pubDate>Thu, 14 Mar 2013 10:53:06 GMT</pubDate></item><item><title><![CDATA[Reply to C++11 und UTF-8 on Thu, 14 Mar 2013 10:56:16 GMT]]></title><description><![CDATA[<p>Für UTF-8 gibt es keinen eigenen Typ, es wird auch const char[] verwendet.</p>
<p>Bitte auch die Antwort dort beachten:<br />
<a href="http://stackoverflow.com/questions/6072342/how-to-use-utf8-character-arrays-in-c" rel="nofollow">http://stackoverflow.com/questions/6072342/how-to-use-utf8-character-arrays-in-c</a></p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2306615</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2306615</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Thu, 14 Mar 2013 10:56:16 GMT</pubDate></item><item><title><![CDATA[Reply to C++11 und UTF-8 on Thu, 14 Mar 2013 11:07:16 GMT]]></title><description><![CDATA[<p>SideWinder schrieb:</p>
<blockquote>
<p>Für UTF-8 gibt es keinen eigenen Typ, es wird auch const char[] verwendet.</p>
</blockquote>
<p>Er hat doch explizit nach einem string-Typen und nicht nach einem char-Typen gefragt. So wie die Frage gestellt ist, ist dem TE das sicher klar.</p>
<p>Die einzig korrekte Antwort ist also: Nein, so einen extra string Typen gibt es leider nicht.<br />
Und: Ich würde mir eine eigene Klasse dafür schreiben. (utf8string)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2306618</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2306618</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Thu, 14 Mar 2013 11:07:16 GMT</pubDate></item><item><title><![CDATA[Reply to C++11 und UTF-8 on Thu, 14 Mar 2013 11:04:15 GMT]]></title><description><![CDATA[<p>Unicodler schrieb:</p>
<blockquote>
<p>Wie macht ihr das, wenn ihr mit UTF-8 arbeitet?</p>
</blockquote>
<p>Nicht Standard C++ verwenden. Selbst mit C++11 ist der Unicode-Support rudimentär. Sobald du etwas mehr Funktionalität möchtest, muss man sowieso umsteigen.</p>
<p>Ausserdem sind die iostreams schrott, die möchte man auch nicht zwingend verwenden.</p>
<p>&lt;a href= schrieb:</p>
<blockquote>
<p>Boost&quot;&gt;Almost every(!) facet has design flaws:</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/2306619</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2306619</guid><dc:creator><![CDATA[pragmati]]></dc:creator><pubDate>Thu, 14 Mar 2013 11:04:15 GMT</pubDate></item><item><title><![CDATA[Reply to C++11 und UTF-8 on Thu, 14 Mar 2013 11:19:24 GMT]]></title><description><![CDATA[<p>cooky451 schrieb:</p>
<blockquote>
<p>Skym0sh0 schrieb:</p>
<blockquote>
<p>std::wstring</p>
</blockquote>
<p>ROFL <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
</blockquote>
<p>Jetzt mal ohne Spass, Kollegen.<br />
Ich hab mich nie mit Codieren beschäftigt, ich hab letztlich keine wirkliche Ahnung, wo die Unterschiede zwischen string und wstring (bzw char und wchar_t) sind, ausser dass die w's etwas größer sind.</p>
<p>Genauso wenig hab ich groß Ahnung von Unicode (ich weiss dass es da was gibt).</p>
<p>Und meine Antwort auf die Frage von OP war eher mal so ins Blaue geschossen, ich hab damit gerechnet(und darauf gehofft), dass mich jemand korrigiert...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2306621</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2306621</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Thu, 14 Mar 2013 11:19:24 GMT</pubDate></item><item><title><![CDATA[Reply to C++11 und UTF-8 on Thu, 14 Mar 2013 11:36:54 GMT]]></title><description><![CDATA[<p>Ach so, ich dachte die Antwort sei eine clevere Anspielung auf die leichte Tendenz des Standards Dinge bis hin zur völligen Nutzlosigkeit zur verallgemeinern.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2306626</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2306626</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Thu, 14 Mar 2013 11:36:54 GMT</pubDate></item><item><title><![CDATA[Reply to C++11 und UTF-8 on Thu, 14 Mar 2013 14:50:04 GMT]]></title><description><![CDATA[<p>Skym0sh0 schrieb:</p>
<blockquote>
<p>cooky451 schrieb:</p>
<blockquote>
<p>Skym0sh0 schrieb:</p>
<blockquote>
<p>std::wstring</p>
</blockquote>
<p>ROFL <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
</blockquote>
<p>Jetzt mal ohne Spass, Kollegen.<br />
Ich hab mich nie mit Codieren beschäftigt, ich hab letztlich keine wirkliche Ahnung, wo die Unterschiede zwischen string und wstring (bzw char und wchar_t) sind, ausser dass die w's etwas größer sind.</p>
<p>Genauso wenig hab ich groß Ahnung von Unicode (ich weiss dass es da was gibt).</p>
<p>Und meine Antwort auf die Frage von OP war eher mal so ins Blaue geschossen, ich hab damit gerechnet(und darauf gehofft), dass mich jemand korrigiert...</p>
</blockquote>
<p>+1</p>
<p>cooky451 schrieb:</p>
<blockquote>
<p>Ach so, ich dachte die Antwort sei eine clevere Anspielung auf die leichte Tendenz des Standards Dinge bis hin zur völligen Nutzlosigkeit zur verallgemeinern.</p>
</blockquote>
<p>LOL</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2306718</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2306718</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Thu, 14 Mar 2013 14:50:04 GMT</pubDate></item><item><title><![CDATA[Reply to C++11 und UTF-8 on Thu, 14 Mar 2013 15:43:42 GMT]]></title><description><![CDATA[<p>Nathan schrieb:</p>
<blockquote>
<p>Skym0sh0 schrieb:</p>
<blockquote>
<p>cooky451 schrieb:</p>
<blockquote>
<p>Skym0sh0 schrieb:</p>
<blockquote>
<p>std::wstring</p>
</blockquote>
<p>ROFL <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
</blockquote>
<p>Jetzt mal ohne Spass, Kollegen.<br />
Ich hab mich nie mit Codieren beschäftigt, ich hab letztlich keine wirkliche Ahnung, wo die Unterschiede zwischen string und wstring (bzw char und wchar_t) sind, ausser dass die w's etwas größer sind.</p>
<p>Genauso wenig hab ich groß Ahnung von Unicode (ich weiss dass es da was gibt).</p>
<p>Und meine Antwort auf die Frage von OP war eher mal so ins Blaue geschossen, ich hab damit gerechnet(und darauf gehofft), dass mich jemand korrigiert...</p>
</blockquote>
<p>+1</p>
<p>cooky451 schrieb:</p>
<blockquote>
<p>Ach so, ich dachte die Antwort sei eine clevere Anspielung auf die leichte Tendenz des Standards Dinge bis hin zur völligen Nutzlosigkeit zur verallgemeinern.</p>
</blockquote>
<p>LOL</p>
</blockquote>
<p>+1</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2306741</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2306741</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Thu, 14 Mar 2013 15:43:42 GMT</pubDate></item></channel></rss>