<?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[CGI und UTF-8]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine cgi in C++ welche in UTF-8 kodierte Ergebnisse liefern soll. Ich finde einfach keine Anleitung wie man dass bewerkstelligen kann. Ich weiß schon dass man mit wstrings arbeiten muss mehr aber nicht. Am besten wäre eine Möglichkeit mit MinGW aber zur Not tut es auch Visual C++ 2008.</p>
<p>Zusammenfassend:<br />
Was muss ich machen um mit meiner Cgi-Andwengdung UTF-8 Ausgaben erzeugen zu können?</p>
<p>mfg DarkMaTTi</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/244132/cgi-und-utf-8</link><generator>RSS for Node</generator><lastBuildDate>Sat, 19 Sep 2026 10:49:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/244132.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Jun 2009 17:08:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CGI und UTF-8 on Thu, 25 Jun 2009 17:08:59 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine cgi in C++ welche in UTF-8 kodierte Ergebnisse liefern soll. Ich finde einfach keine Anleitung wie man dass bewerkstelligen kann. Ich weiß schon dass man mit wstrings arbeiten muss mehr aber nicht. Am besten wäre eine Möglichkeit mit MinGW aber zur Not tut es auch Visual C++ 2008.</p>
<p>Zusammenfassend:<br />
Was muss ich machen um mit meiner Cgi-Andwengdung UTF-8 Ausgaben erzeugen zu können?</p>
<p>mfg DarkMaTTi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1732816</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1732816</guid><dc:creator><![CDATA[DarkMaTTi]]></dc:creator><pubDate>Thu, 25 Jun 2009 17:08:59 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Thu, 25 Jun 2009 18:30:29 GMT]]></title><description><![CDATA[<p>Du brauchst einen Konverter, der dir deine Zeichen in UTF-8 umwandelt. Da gibts mehrere Wege. Normalweise weist man seinem Stream-Objekt eine locale (mit codecvt) zu, die von Codepage-A nach Codepage-B konvertiert. Hier gibts eine kommerzielle Lib:<br />
<a href="http://www.dinkumware.com/manuals/default.aspx?manual=compleat&amp;page=index_cvt.html" rel="nofollow">http://www.dinkumware.com/manuals/default.aspx?manual=compleat&amp;page=index_cvt.html</a><br />
Das ist natürlich die eleganteste Variante!</p>
<p>Sowas gibt es aber auch: <a href="http://icu-project.org/" rel="nofollow">http://icu-project.org/</a></p>
<p>Evtl. bietet das OS das du verwendet auch in seiner API eine Konvertierung an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1732851</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1732851</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Thu, 25 Jun 2009 18:30:29 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Thu, 25 Jun 2009 20:04:53 GMT]]></title><description><![CDATA[<p>bei IUC bekomm ich nachdem Einbinden und der Verwendung von UnicodeString fehler:<br />
`</p>
<p>G:\Workspace\CodeBlocks\GDTest\main.cpp|68|undefined reference to `__imp___ZN7icu_4_213UnicodeStringC1Ev'|</p>
<p>G:\Workspace\CodeBlocks\GDTest\main.cpp|164|undefined reference to `icu_4_2::UnicodeString::~UnicodeString()'|</p>
<p>G:\Workspace\CodeBlocks\GDTest\main.cpp|164|undefined reference to `icu_4_2::UnicodeString::~UnicodeString()'|</p>
<p>`</p>
<p>und das andere kostet ja Geld...</p>
<p>also gibts keine weiteren Möglichkeiten?</p>
<p>mfg DarkMaTTi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1732912</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1732912</guid><dc:creator><![CDATA[DarkMaTTi]]></dc:creator><pubDate>Thu, 25 Jun 2009 20:04:53 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Thu, 25 Jun 2009 20:15:56 GMT]]></title><description><![CDATA[<p>Wenn du die Zeit und Muße hast kannst du dir natürlich auch schnell was selbst schreiben. UTF-8 ist ihmo im prinzip ja nicht so schwer. das sollte dann gehen solange du mit der performance keine probleme hast.</p>
<p>ich meinte mich zu erinnern das QT sowas mal drin hatte bin mir aber nicht sicher. evtl gibts auch direct vom unicodekonsortsium (richtiger name?) was.</p>
<p>btw.: wstrings sind platformabhängig: windows utf16 unix/linux utf32.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1732920</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1732920</guid><dc:creator><![CDATA[Fencer]]></dc:creator><pubDate>Thu, 25 Jun 2009 20:15:56 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Thu, 25 Jun 2009 21:27:20 GMT]]></title><description><![CDATA[<p>Fencer schrieb:</p>
<blockquote>
<p>Wenn du die Zeit und Muße hast kannst du dir natürlich auch schnell was selbst schreiben. UTF-8 ist ihmo im prinzip ja nicht so schwer. das sollte dann gehen solange du mit der performance keine probleme hast.</p>
</blockquote>
<p>Selber implementieren ist nur die letzte Lösung und sollte man eigentliche vermeiden. Außer man will es aus Lernzwecke machen. Aber um eine Lösung zu finden, eher nicht.</p>
<p>Fencer schrieb:</p>
<blockquote>
<p>btw.: wstrings sind platformabhängig: windows utf16 unix/linux utf32.</p>
</blockquote>
<p>Das ist Quatsch! wchar_t ist je nach Compiler unterschiedlich breit, hat nichts mit Linux oder Windows zu tun. Ist aber meistens irrelevant.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1732971</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1732971</guid><dc:creator><![CDATA[Bulli]]></dc:creator><pubDate>Thu, 25 Jun 2009 21:27:20 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Thu, 25 Jun 2009 21:29:02 GMT]]></title><description><![CDATA[<p>DarkMaTTi schrieb:</p>
<blockquote>
<p>bei IUC bekomm ich nachdem Einbinden und der Verwendung von UnicodeString fehler:<br />
`</p>
<p>G:\Workspace\CodeBlocks\GDTest\main.cpp|68|undefined reference to `__imp___ZN7icu_4_213UnicodeStringC1Ev'|</p>
<p>G:\Workspace\CodeBlocks\GDTest\main.cpp|164|undefined reference to `icu_4_2::UnicodeString::~UnicodeString()'|</p>
<p>G:\Workspace\CodeBlocks\GDTest\main.cpp|164|undefined reference to `icu_4_2::UnicodeString::~UnicodeString()'|</p>
<p>`</p>
</blockquote>
<p>Und? Fehler beheben! Steht doch da was los ist. Du mußt die Lib linken.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1732972</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1732972</guid><dc:creator><![CDATA[Bulli]]></dc:creator><pubDate>Thu, 25 Jun 2009 21:29:02 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Thu, 25 Jun 2009 21:36:20 GMT]]></title><description><![CDATA[<blockquote>
<p>Fencer schrieb:</p>
<blockquote>
<p>btw.: wstrings sind platformabhängig: windows utf16 unix/linux utf32.</p>
</blockquote>
<p>Das ist Quatsch! wchar_t ist je nach Compiler unterschiedlich breit, hat nichts mit Linux oder Windows zu tun. Ist aber meistens irrelevant.</p>
</blockquote>
<p>meinte ich. in meiner gedanken hab ich versehentlich win=vc und linux=gcc gesetzt sorry.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1732977</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1732977</guid><dc:creator><![CDATA[Fencer]]></dc:creator><pubDate>Thu, 25 Jun 2009 21:36:20 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Thu, 25 Jun 2009 22:57:05 GMT]]></title><description><![CDATA[<p>das Programm muss nur auf Windows lauffähig sein.</p>
<blockquote>
<p>Und? Fehler beheben! Steht doch da was los ist. Du mußt die Lib linken.</p>
</blockquote>
<p>dass ist ja das Problem, ich habe die Include-Pfade gesetzt und die include's gemacht, im Linker die pfade zu den lib gesetzt und die .dll's ausm /bin zum Projekt hinzugefügt so wie ich es bei der GDlib gemacht habe. Aber trotzdem kommt dieser Fehler. Wenn ich z.B.: UBool benutzte funktioniert es. Was mach ich den noch falsch???</p>
<p>mfg DarkMaTTi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1733009</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1733009</guid><dc:creator><![CDATA[DarkMaTTi]]></dc:creator><pubDate>Thu, 25 Jun 2009 22:57:05 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Thu, 25 Jun 2009 23:17:00 GMT]]></title><description><![CDATA[<p>Nein, wstring ist falsch! UTF8 ist einfach Unicode in 8 Bit verpackt. Sprich du kannst einen einfachen std::string nehmen. Nur ist eben ein Zeichen nicht unbedingt ein char groß.<br />
<a href="http://en.wikipedia.org/wiki/UTF-8" rel="nofollow">http://en.wikipedia.org/wiki/UTF-8</a></p>
<p>Worum geht es dir genau? Wenn du UTF-8 ausgeben willst, dann musst du einfach nur UTF-8 Strings in deiner Datei benutzen. Wenn du bestehende Daten in UTF-8 konvertieren willst, dann kannst du das mit <a href="http://gcc.gnu.org/onlinedocs/libstdc++/manual/codecvt.html" rel="nofollow">ccodecvt</a> tun.</p>
<p>Ansonsten gibt es noch <a href="http://utfcpp.sourceforge.net/" rel="nofollow">http://utfcpp.sourceforge.net/</a> zur Behandlung von UTF-8 Strings.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1733017</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1733017</guid><dc:creator><![CDATA[rüdiger]]></dc:creator><pubDate>Thu, 25 Jun 2009 23:17:00 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Fri, 26 Jun 2009 05:54:31 GMT]]></title><description><![CDATA[<p>rüdiger schrieb:</p>
<blockquote>
<p>Nein, wstring ist falsch! UTF8 ist einfach Unicode in 8 Bit verpackt. Sprich du kannst einen einfachen std::string nehmen.</p>
</blockquote>
<p>Warum string??? das ist ein ASCII-String, der absolut für UTF-8 ungeeignet ist.</p>
<p>Der Fragesteller hat einen wstring, in dem er wahrscheinlich UCS-2 oder UCS-4 benutzt. Und er will nach UTF-8 umwandeln, dafür brauch er gar keinen String. Das was er rauskonvertiert ist &quot;flüchtig&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1733065</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1733065</guid><dc:creator><![CDATA[Bulli]]></dc:creator><pubDate>Fri, 26 Jun 2009 05:54:31 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Fri, 26 Jun 2009 09:38:38 GMT]]></title><description><![CDATA[<p>Natürlich kannst Du einen UTF-8 konvertierten String in einem std::string halten, man muss dann halt nur bissel aufpassen:</p>
<pre><code class="language-cpp">std::string(&quot;ä&quot;).length(); // 2
</code></pre>
<p>Einfach mal <a href="http://utfcpp.sourceforge.net/" rel="nofollow">http://utfcpp.sourceforge.net/</a> aufmerksam lesen und es wird denk ich einiges klarer werden.</p>
<p>Gut Schuß<br />
VuuRWerK <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1733190</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1733190</guid><dc:creator><![CDATA[VuuRWerK]]></dc:creator><pubDate>Fri, 26 Jun 2009 09:38:38 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Fri, 26 Jun 2009 10:03:34 GMT]]></title><description><![CDATA[<p>Bulli schrieb:</p>
<blockquote>
<p>rüdiger schrieb:</p>
<blockquote>
<p>Nein, wstring ist falsch! UTF8 ist einfach Unicode in 8 Bit verpackt. Sprich du kannst einen einfachen std::string nehmen.</p>
</blockquote>
<p>Warum string??? das ist ein ASCII-String, der absolut für UTF-8 ungeeignet ist.</p>
</blockquote>
<p>Nein. UTF-8 wurde doch genau dafür entworfen, dass es einfach in 8 Bit großen Strings verwendet werden kann. Nur ist eben nicht unbedingt ein Zeichen gleich ein <code>char</code> (siehe VuuRWerKs Posting).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1733200</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1733200</guid><dc:creator><![CDATA[rüdiger]]></dc:creator><pubDate>Fri, 26 Jun 2009 10:03:34 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Fri, 26 Jun 2009 11:24:04 GMT]]></title><description><![CDATA[<p>VuuRWerK schrieb:</p>
<blockquote>
<p>Natürlich kannst Du einen UTF-8 konvertierten String in einem std::string halten, man muss dann halt nur bissel aufpassen:</p>
<pre><code class="language-cpp">std::string(&quot;ä&quot;).length(); // 2
</code></pre>
</blockquote>
<p>Weißt du, dann kannst du auch <code>std::vector&lt;char&gt;</code> benutzen! Und das ist nicht der Sinn, wenn mir jemand verklickern will, das std::string UTF-8-fähig ist. Genau DAS zeigt, das es nicht so ist. Ein String-Interface soll mich unterstützen, und nicht behindern.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1733237</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1733237</guid><dc:creator><![CDATA[Bulli]]></dc:creator><pubDate>Fri, 26 Jun 2009 11:24:04 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Fri, 26 Jun 2009 12:14:20 GMT]]></title><description><![CDATA[<p>zum Thema intener Datentyp: <a href="http://www.kharchi.eu/wiki/doku.php?id=cpp:std:string#internationalisierung" rel="nofollow">http://www.kharchi.eu/wiki/doku.php?id=cpp:std:string#internationalisierung</a></p>
<p>mir geht es einfach darum dass die Ausgabe die ich mit meiner CGI mache UTF-8 Codiert ist. VC++2008 arbeitet mit Unicode trotzdem ist die Ausgabe in ISO und nicht UTF-8???</p>
<p>mfg DarkMaTTi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1733270</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1733270</guid><dc:creator><![CDATA[DarkMaTTi]]></dc:creator><pubDate>Fri, 26 Jun 2009 12:14:20 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Fri, 26 Jun 2009 12:23:51 GMT]]></title><description><![CDATA[<p>Vielleicht hilft dir folgendes von Roger Wilco:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-244120-and-start-is-10.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-244120-and-start-is-10.html</a></p>
<p>Du hast zwar kein Konsolen-Thema, aber du schreibst wahrscheinlich auch in einen Stream (wcout ist ja auch nur ein stream-Object).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1733274</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1733274</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Fri, 26 Jun 2009 12:23:51 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Fri, 26 Jun 2009 13:02:45 GMT]]></title><description><![CDATA[<p>warum die Biblo nicht funzt kann keiner sagen oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1733306</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1733306</guid><dc:creator><![CDATA[DarkMaTTi]]></dc:creator><pubDate>Fri, 26 Jun 2009 13:02:45 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Fri, 26 Jun 2009 13:25:50 GMT]]></title><description><![CDATA[<p>DarkMaTTi schrieb:</p>
<blockquote>
<p>das Programm muss nur auf Windows lauffähig sein.</p>
<blockquote>
<p>Und? Fehler beheben! Steht doch da was los ist. Du mußt die Lib linken.</p>
</blockquote>
<p>dass ist ja das Problem, ich habe die Include-Pfade gesetzt und die include's gemacht, im Linker die pfade zu den lib gesetzt und die .dll's ausm /bin zum Projekt hinzugefügt so wie ich es bei der GDlib gemacht habe. Aber trotzdem kommt dieser Fehler. Wenn ich z.B.: UBool benutzte funktioniert es. Was mach ich den noch falsch???</p>
<p>mfg DarkMaTTi</p>
</blockquote>
<p>Den Pfad nur hinzufügen reicht ja nicht. Hast du auch die .a-Datei angegeben?<br />
Und hast du überhaupt den MSVC im Einsatz? Weil wenn ich unter <a href="http://icu-project.org/download/4.2.html#ICU4C" rel="nofollow">http://icu-project.org/download/4.2.html#ICU4C</a> schaue, gibts ja nur MSVC-Downloads. Oder hast du für deinen MinGW (steht zumindest Codeblocks in deinem Pfad) die Lib selber gebaut?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1733327</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1733327</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Fri, 26 Jun 2009 13:25:50 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Mon, 29 Jun 2009 22:45:58 GMT]]></title><description><![CDATA[<p>Problem gelöst -&gt; Eclipse CTP und MinGW kann mit UTF-8 umgehen und ausgeben. Auch wenn die Einrichtung umständlich ist...</p>
<p>mfg DarkMaTTi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1734811</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1734811</guid><dc:creator><![CDATA[DarkMaTTi]]></dc:creator><pubDate>Mon, 29 Jun 2009 22:45:58 GMT</pubDate></item><item><title><![CDATA[Reply to CGI und UTF-8 on Tue, 30 Jun 2009 08:32:41 GMT]]></title><description><![CDATA[<p>Ich glaub das löst nicht Dein Problem. Die Ausgabe in Eclipse ist vielleicht UTF-8 fähig aber die Windowsconsole oder irgend ein anderes Ausgabemedium kann es nicht von vornherein, und schon hast Du wieder Probleme <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Gut Schuß<br />
VuuRWerK <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1734910</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1734910</guid><dc:creator><![CDATA[VuuRWerK]]></dc:creator><pubDate>Tue, 30 Jun 2009 08:32:41 GMT</pubDate></item></channel></rss>