<?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[Probleme mit ASCII Zeichen]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich brauche mal bitte eure Hilfe.<br />
Ich muss zur Abfrage eines Gerätes mit RS232 Schnistelle ASCII Zeichen über die RS232 an die Steuereinheit senden und darauf hin eine Antwort zu bekommen.</p>
<p>Das ganze funktioniert auch supper bis jetzt. Jetzt benötige ich aber für die Afrage eines Wertes das ASCII Zeichen 145 (dez) oder 91(Hex) in einer char variablen.</p>
<p>Das ganze funktioniert nur leider nicht.<br />
Bis jetzt mache ich das ganze z.B. so:</p>
<p>char send={0x4a};</p>
<p>hier bekomme ich ein &quot;J&quot; in die Variable send.</p>
<p>wenn ich aber versuche:</p>
<p>char send={0x91}; oder<br />
char send={145};</p>
<p>bekomme ich immer den Fehler &quot;Verkuerzung von 'const int' in 'char' &quot;</p>
<p>kann mir da bitte einer weiterhelfen ?</p>
<p>Danke Coolsero</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/307180/probleme-mit-ascii-zeichen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 07 Aug 2026 18:05:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/307180.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 19 Aug 2012 11:50:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme mit ASCII Zeichen on Sun, 19 Aug 2012 11:50:32 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich brauche mal bitte eure Hilfe.<br />
Ich muss zur Abfrage eines Gerätes mit RS232 Schnistelle ASCII Zeichen über die RS232 an die Steuereinheit senden und darauf hin eine Antwort zu bekommen.</p>
<p>Das ganze funktioniert auch supper bis jetzt. Jetzt benötige ich aber für die Afrage eines Wertes das ASCII Zeichen 145 (dez) oder 91(Hex) in einer char variablen.</p>
<p>Das ganze funktioniert nur leider nicht.<br />
Bis jetzt mache ich das ganze z.B. so:</p>
<p>char send={0x4a};</p>
<p>hier bekomme ich ein &quot;J&quot; in die Variable send.</p>
<p>wenn ich aber versuche:</p>
<p>char send={0x91}; oder<br />
char send={145};</p>
<p>bekomme ich immer den Fehler &quot;Verkuerzung von 'const int' in 'char' &quot;</p>
<p>kann mir da bitte einer weiterhelfen ?</p>
<p>Danke Coolsero</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2243307</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2243307</guid><dc:creator><![CDATA[Coolsero]]></dc:creator><pubDate>Sun, 19 Aug 2012 11:50:32 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit ASCII Zeichen on Sun, 19 Aug 2012 12:24:08 GMT]]></title><description><![CDATA[<p>Vielleicht ist dein char signed.<br />
Versuch' mal<br />
<code>unsigned char send = ...;</code></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2243311</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2243311</guid><dc:creator><![CDATA[Caligulaminus]]></dc:creator><pubDate>Sun, 19 Aug 2012 12:24:08 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit ASCII Zeichen on Sun, 19 Aug 2012 12:48:51 GMT]]></title><description><![CDATA[<p>Coolsero schrieb:</p>
<blockquote>
<p>bekomme ich immer den Fehler &quot;Verkuerzung von 'const int' in 'char'</p>
</blockquote>
<blockquote>
<p>The type conversion causes a constant to exceed the space allocated for it. You may need to use a larger type for the constant.</p>
</blockquote>
<p>Abgesehen davon ist ASCII eine 7-Bit-Zeichenkodierung. Alles darüber hinaus hat nichts mit ASCII zu tun und ist systemabhängig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2243316</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2243316</guid><dc:creator><![CDATA[out]]></dc:creator><pubDate>Sun, 19 Aug 2012 12:48:51 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit ASCII Zeichen on Mon, 20 Aug 2012 05:39:23 GMT]]></title><description><![CDATA[<p>Hallo Caligulaminus,</p>
<p>danke für deine Antwort, es hat funktioniert <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="🙂"
    /> Ich weiß nicht warum ich da nicht selbst drauf gekommen bin, aber vielleicht war es gestern auch einfach zu heiß.</p>
<p>Gruß</p>
<p>Coolsero</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2243471</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2243471</guid><dc:creator><![CDATA[Coolsero]]></dc:creator><pubDate>Mon, 20 Aug 2012 05:39:23 GMT</pubDate></item></channel></rss>