<?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[Unicode zu ASCII]]></title><description><![CDATA[<p>Hallo,<br />
ich lese aus der Registry mit meinem ASCII-basiertem Programm einen<br />
String von einem Programm aus, nur leider ist dieser String in UNICODE,<br />
und ich kann ihn deshalb nicht an meine ASCII-basierten funktionen weitergeben<br />
oder gar ausgeben.</p>
<pre><code class="language-cpp">BYTE * unicodeString; //da Habe ich meinen Unicode-String drin
char * asciiString; //da will ich ihn in ASCII konvertiert rein haben
</code></pre>
<p>der Unicode String sieht etwa so aus:<br />
0x20 0x00 0x35 0x00 ....</p>
<p>Vielen Dank schonmal für eure Hilfe,<br />
mfG (und frohe Ostern!)</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/178022/unicode-zu-ascii</link><generator>RSS for Node</generator><lastBuildDate>Sun, 20 Sep 2026 05:15:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/178022.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Apr 2007 14:30:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unicode zu ASCII on Fri, 06 Apr 2007 14:30:18 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich lese aus der Registry mit meinem ASCII-basiertem Programm einen<br />
String von einem Programm aus, nur leider ist dieser String in UNICODE,<br />
und ich kann ihn deshalb nicht an meine ASCII-basierten funktionen weitergeben<br />
oder gar ausgeben.</p>
<pre><code class="language-cpp">BYTE * unicodeString; //da Habe ich meinen Unicode-String drin
char * asciiString; //da will ich ihn in ASCII konvertiert rein haben
</code></pre>
<p>der Unicode String sieht etwa so aus:<br />
0x20 0x00 0x35 0x00 ....</p>
<p>Vielen Dank schonmal für eure Hilfe,<br />
mfG (und frohe Ostern!)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1260662</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1260662</guid><dc:creator><![CDATA[Listing]]></dc:creator><pubDate>Fri, 06 Apr 2007 14:30:18 GMT</pubDate></item><item><title><![CDATA[Reply to Unicode zu ASCII on Fri, 06 Apr 2007 14:55:57 GMT]]></title><description><![CDATA[<p>Nur doof, dass Unicode nur die Zuordnung Code&lt;-&gt;Zeichen festlegt und keinesfalls die Kodierung in einzelne Bytes.</p>
<p>Sprich du möchtest UTF16 (danach siehts aus) in ASCII umwandeln.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1260682</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1260682</guid><dc:creator><![CDATA[Entenwickler]]></dc:creator><pubDate>Fri, 06 Apr 2007 14:55:57 GMT</pubDate></item><item><title><![CDATA[Reply to Unicode zu ASCII on Fri, 06 Apr 2007 17:59:17 GMT]]></title><description><![CDATA[<p>Entenwickler schrieb:</p>
<blockquote>
<p>Nur doof, dass Unicode nur die Zuordnung Code&lt;-&gt;Zeichen festlegt und keinesfalls die Kodierung in einzelne Bytes.</p>
<p>Sprich du möchtest UTF16 (danach siehts aus) in ASCII umwandeln.</p>
</blockquote>
<p>Das kann jetzt ja nicht wahr sein, dass ich Unicode nicht in lesbare<br />
ASCII-Schrift verwandeln kann....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1260808</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1260808</guid><dc:creator><![CDATA[Listing]]></dc:creator><pubDate>Fri, 06 Apr 2007 17:59:17 GMT</pubDate></item><item><title><![CDATA[Reply to Unicode zu ASCII on Fri, 06 Apr 2007 18:55:13 GMT]]></title><description><![CDATA[<p>Hi, lies doch die Registry-Werte gleich als char - Zeichenkette ein, dann klappts auch mit dem Weitergeben.</p>
<p>Gruß,<br />
p.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1260851</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1260851</guid><dc:creator><![CDATA[proggingmania]]></dc:creator><pubDate>Fri, 06 Apr 2007 18:55:13 GMT</pubDate></item><item><title><![CDATA[Reply to Unicode zu ASCII on Fri, 06 Apr 2007 19:20:00 GMT]]></title><description><![CDATA[<pre><code>#include &lt;windows.h&gt;
#include &lt;stdio.h&gt;
void main()
{
    char cRegWert[64];
    int len = 64;
    HKEY hKey;
    int i=0;
    if( ERROR_SUCCESS == RegOpenKeyEx (HKEY_LOCAL_MACHINE, &quot;SOFTWARE\\&quot;, 0L, KEY_READ , &amp;hKey ) )
    {
         puts(&quot;  ************** Meine Windoof Proggies **************  \n\n&quot; );
		  while(ERROR_SUCCESS == RegEnumKey (hKey, i++, cRegWert, len) )
         {
              printf (&quot;%s\n&quot;,cRegWert);
         }
    }
    RegCloseKey(hKey);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1260865</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1260865</guid><dc:creator><![CDATA[proggingmania]]></dc:creator><pubDate>Fri, 06 Apr 2007 19:20:00 GMT</pubDate></item><item><title><![CDATA[Reply to Unicode zu ASCII on Fri, 06 Apr 2007 19:20:30 GMT]]></title><description><![CDATA[<p>proggingmania schrieb:</p>
<blockquote>
<p>Hi, lies doch die Registry-Werte gleich als char - Zeichenkette ein, dann klappts auch mit dem Weitergeben.</p>
<p>Gruß,<br />
p.</p>
</blockquote>
<p>Ich habe in meiner Topic ein bisschen vereinfacht, die Zeichenkette<br />
ist durch Baser64 verschlüsselt...</p>
<p>Es geht nur darum ASCII &lt;&gt; Unicode</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1260866</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1260866</guid><dc:creator><![CDATA[Listing]]></dc:creator><pubDate>Fri, 06 Apr 2007 19:20:30 GMT</pubDate></item><item><title><![CDATA[Reply to Unicode zu ASCII on Fri, 06 Apr 2007 19:24:50 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Suchfunktion benutzen! Das <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-168607-and-highlight-is-%2Aunicode%2A.html" rel="nofollow">hier</a> hab ich mit dem Suchbegriff *Unicode* gefunden.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1260870</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1260870</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 06 Apr 2007 19:24:50 GMT</pubDate></item><item><title><![CDATA[Reply to Unicode zu ASCII on Fri, 06 Apr 2007 21:48:48 GMT]]></title><description><![CDATA[<p>Listing schrieb:</p>
<blockquote>
<p>Entenwickler schrieb:</p>
<blockquote>
<p>Nur doof, dass Unicode nur die Zuordnung Code&lt;-&gt;Zeichen festlegt und keinesfalls die Kodierung in einzelne Bytes.</p>
<p>Sprich du möchtest UTF16 (danach siehts aus) in ASCII umwandeln.</p>
</blockquote>
<p>Das kann jetzt ja nicht wahr sein, dass ich Unicode nicht in lesbare<br />
ASCII-Schrift verwandeln kann....</p>
</blockquote>
<p>Wie hast du das aus meinem Posting herausgelesen? Diese Gabe, Dinge zu finden und interpretieren, die nicht da sind hat mir wohl im Deutsch-Abitur gefehlt.</p>
<p>Ich hab nie gesagt, dass es nicht geht - nur, dass deine Frage so schlicht und einfach falsch gestellt ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1260944</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1260944</guid><dc:creator><![CDATA[Entenwickler]]></dc:creator><pubDate>Fri, 06 Apr 2007 21:48:48 GMT</pubDate></item></channel></rss>