<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: extended ascii, wrong values with atoi</title>
		<atom:link href="http://cycling74.com/forums/topic/extended-ascii-wrong-values-with-atoi/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/extended-ascii-wrong-values-with-atoi/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 02:25:51 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/extended-ascii-wrong-values-with-atoi/#post-54623</guid>
					<title><![CDATA[extended ascii, wrong values with atoi]]></title>
					<link>http://cycling74.com/forums/topic/extended-ascii-wrong-values-with-atoi/#post-54623</link>
					<pubDate>Thu, 27 Jan 2011 01:35:48 +0000</pubDate>
					<dc:creator>jmmmp</dc:creator>

					<description>
						<![CDATA[
						<p>Hi, I wanted to convert german text to ascii using atoi. The extended german characters like ö Ö etc. don&#8217;t work very well. E.g. instead of getting 246 for ö, I get 195 182 (two values??).</p>
<p>Is there a more reliable ascii symbol-int converter? Or am I doing something wrong?<br />
Funnily, the text is displayed correctly by the text object.<br />
Also, itoa doesn&#8217;t display the same characters.</p>
<p>System: XP, Max 5</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/extended-ascii-wrong-values-with-atoi/#post-196692</guid>
					<title><![CDATA[Re: extended ascii, wrong values with atoi]]></title>
					<link>http://cycling74.com/forums/topic/extended-ascii-wrong-values-with-atoi/#post-196692</link>
					<pubDate>Thu, 27 Jan 2011 11:07:41 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>Suggest reading < <a href="http://en.wikipedia.org/wiki/Unicode#Ready-made_versus_composite_characters" rel="nofollow">http://en.wikipedia.org/wiki/Unicode#Ready-made_versus_composite_characters>.</p>
<p>Nothing wrong with the values you&#8217;re getting from atoi. You&#8217;re just expecting the ready-made character while text (and message, and everything else) is using composite characters.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/extended-ascii-wrong-values-with-atoi/#post-196693</guid>
					<title><![CDATA[Re: extended ascii, wrong values with atoi]]></title>
					<link>http://cycling74.com/forums/topic/extended-ascii-wrong-values-with-atoi/#post-196693</link>
					<pubDate>Thu, 27 Jan 2011 14:17:24 +0000</pubDate>
					<dc:creator>jmmmp</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Peter, thanks for the reply.</p>
<p>That could make sense, but the thing is that I the character 246 &#8211; ö &#8211; gave the numbers 195 and 182, Ã and ¶ [don't know if the characters will be correctly displayed].<br />
Following the composite logic, it should give out o and trema, 111 + 168.</p>
<p>I tried with Pd with a similar object, and it did work with 246.</p>
<p>Btw, do you think this is an issue only of text, but not of the system? I got a windows computer to work on, but the patch will also be used on a mac.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/extended-ascii-wrong-values-with-atoi/#post-196694</guid>
					<title><![CDATA[Re: extended ascii, wrong values with atoi]]></title>
					<link>http://cycling74.com/forums/topic/extended-ascii-wrong-values-with-atoi/#post-196694</link>
					<pubDate>Thu, 27 Jan 2011 16:39:34 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>I got the same results here on Mac OS. The letter ö is decomposed as {195 182}. In fact, I know this has been discussed many times and cross-platform isn&#8217;t a problem.</p>
<p>I had to think about the decomposition for a minute… then I recalled that Max is using UTF-8. The anchor I linked to previously is a bit of a red herring, sorry. However, the Wikipedia article links to the article on UTF-8, if you want the gory details. It ain&#8217;t pretty, but what atoi is doing is correct UTF-8.</p>
<p>One could argue that it would make more sense for itoa and atoi to work directly with 24-bit Unicode values. This appears to be what Pd is doing. But the Max behavior has now been with us since v5.0, so we&#8217;re sort of stuck with it. </p>
<p>It would not be very hard to write an abstraction that can convert atoi&#8217;s list output to the equivalent Unicode code points.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/extended-ascii-wrong-values-with-atoi/#post-196695</guid>
					<title><![CDATA[Re: extended ascii, wrong values with atoi]]></title>
					<link>http://cycling74.com/forums/topic/extended-ascii-wrong-values-with-atoi/#post-196695</link>
					<pubDate>Thu, 27 Jan 2011 16:52:13 +0000</pubDate>
					<dc:creator>jmmmp</dc:creator>

					<description>
						<![CDATA[
						<p>Yes, I forgot to say that I had already noticed that max is utf-8 (got there by trial and error).<br />
I think an abstraction to correct the values is a good idea. May I just ask, do you know where I can find reliable comparison charts between utf8, ansi, etc.? I&#8217;ll google myself, but just wanted to know if you have a resource at hand.</p>
<p>João</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/extended-ascii-wrong-values-with-atoi/#post-196696</guid>
					<title><![CDATA[Re: extended ascii, wrong values with atoi]]></title>
					<link>http://cycling74.com/forums/topic/extended-ascii-wrong-values-with-atoi/#post-196696</link>
					<pubDate>Thu, 27 Jan 2011 20:03:01 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>The Wikipedia articles include tables of codepoints, and there&#8217;s an article comparing coding systems. I haven&#8217;t read it, but probably a good start.</p>
<p>Hope this helps &#8212; P.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/extended-ascii-wrong-values-with-atoi/#post-196697</guid>
					<title><![CDATA[Re: extended ascii, wrong values with atoi]]></title>
					<link>http://cycling74.com/forums/topic/extended-ascii-wrong-values-with-atoi/#post-196697</link>
					<pubDate>Mon, 31 Jan 2011 13:01:10 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>Hi João,</p>
<p>OK, here&#8217;s one way of converting UTF-8 sequences to their Unicode values.</p>
<p>The &#8220;help&#8221; file has examples from the lowest and highest Unicode characters for single-byte, double-byte, and triple-byte UTF-8 sequences (well, close to the extreme values, the absolute extremes are mostly not printable characters or even used by Unicode). I&#8217;ve checked the calculated values against the values given in the Character View palette from the Input menu on Mac OS.</p>
<p>I tried some 4-byte sequences, but itoa seems to be generating incorrect UTF-8 sequences for Unicode codepoints above U-10000. So now someone&#8217;s got to write a bug report:-(</p>
<p>Hope this helps,<br />
— P.</p>
<p>(PS: nice seeing you guys at the weekend.)</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

