<?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[ASCII umwandeln]]></title><description><![CDATA[<p>Hi zusammen,</p>
<p>ich hab eine Software geschrieben um über RS232 Daten zu versenden und zu empfangen, was auch soweit gut funktioniert. Allerdings hab ich jetzt das Problem, dass die empfangenen Daten in Hexadezimaler ASCII Notation ankommen, ich aber das jeweilig richtige Zeichen ausgeben möchte.</p>
<p>Jemand ne Idee oder sogar die Lösung?</p>
<p>Schon mal vielen dank <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>/edit<br />
Nur zur Veranschaulichung:<br />
Ich sende &quot;3&quot; und bekomme &quot;51&quot;<br />
Ich sende &quot;b&quot; und bekomme &quot;98&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/147558/ascii-umwandeln</link><generator>RSS for Node</generator><lastBuildDate>Thu, 06 Aug 2026 19:13:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/147558.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 May 2006 07:15:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ASCII umwandeln on Thu, 18 May 2006 07:16:45 GMT]]></title><description><![CDATA[<p>Hi zusammen,</p>
<p>ich hab eine Software geschrieben um über RS232 Daten zu versenden und zu empfangen, was auch soweit gut funktioniert. Allerdings hab ich jetzt das Problem, dass die empfangenen Daten in Hexadezimaler ASCII Notation ankommen, ich aber das jeweilig richtige Zeichen ausgeben möchte.</p>
<p>Jemand ne Idee oder sogar die Lösung?</p>
<p>Schon mal vielen dank <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>/edit<br />
Nur zur Veranschaulichung:<br />
Ich sende &quot;3&quot; und bekomme &quot;51&quot;<br />
Ich sende &quot;b&quot; und bekomme &quot;98&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059936</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059936</guid><dc:creator><![CDATA[Menace]]></dc:creator><pubDate>Thu, 18 May 2006 07:16:45 GMT</pubDate></item><item><title><![CDATA[Reply to ASCII umwandeln on Thu, 18 May 2006 07:24:38 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Du kannst int und char direkt miteinander zuweisen</p>
<pre><code class="language-cpp">char x = '3';
int y = x;
x = y;
</code></pre>
<p>Intern sind alle integralen Typen übrigens binär, nicht hexadezimal oder dezimal.<br />
Es ist immer nur eine Frage der Ausgabekonvention für den User.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059941</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059941</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 18 May 2006 07:24:38 GMT</pubDate></item><item><title><![CDATA[Reply to ASCII umwandeln on Thu, 18 May 2006 08:45:21 GMT]]></title><description><![CDATA[<p>Hui das hat direkt funktioniert, ich danke Dir!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059974</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059974</guid><dc:creator><![CDATA[Menace]]></dc:creator><pubDate>Thu, 18 May 2006 08:45:21 GMT</pubDate></item><item><title><![CDATA[Reply to ASCII umwandeln on Mon, 29 May 2006 09:59:03 GMT]]></title><description><![CDATA[<p>Ok, ich hab da noch mal eine erweiterte Frage zu diesem Thema:</p>
<p>Der oben gezeigte Lösungsansatz hat nun denn wirklich funktioniert, jetzt hab ich aber mal was ganz Seltsames erlebt...<br />
Wenn ich nämlich diese Konvertierung auskommentiere, sollte er mir ja wieder die, in meinem ersten Beitrag, erwähnte Notation ausgeben. Tut er aber nicht!</p>
<p>Ich kriege jetzt sowohl mit:</p>
<pre><code class="language-cpp">int x = ReceivedData;
ReceivedData = x;
Form1 -&gt; Edit3 -&gt; Text = ReceivedData;
return true;
</code></pre>
<p>als auch mit:</p>
<pre><code class="language-cpp">//int x = ReceivedData;
//ReceivedData = x;
Form1 -&gt; Edit3 -&gt; Text = ReceivedData;
return true;
</code></pre>
<p>die &quot;richtigen&quot; Zeichen ausgegeben...</p>
<p>WARUM? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>/edit:<br />
Ach ja -&gt; ReceivedData ist vom Typ 'char'</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1067212</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1067212</guid><dc:creator><![CDATA[Menace]]></dc:creator><pubDate>Mon, 29 May 2006 09:59:03 GMT</pubDate></item></channel></rss>