Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: char to decimal Date: Thu, 05 May 2011 18:20:57 -0400 Organization: albasani.net Lines: 26 Message-ID: References: <92ea64F3avU1@mid.individual.net> <92ft5pFjeiU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.albasani.net LyegEX2ooQW6zQI/okT+10+2iE+2oPzJvN1FzsDIX7KOMbYSDFoQW8Up+WzAkXMe82wJ5NZlitCl0M7vhUkang== NNTP-Posting-Date: Thu, 5 May 2011 22:20:55 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="enkjvTIqn5KdiaZBYPBhMthmdgpj1+L+0ovL6zSt3ETbCGsSi6p1KC0wcSMptDSIzx60wUQ4ud8I6wouK0j/G2XbCDwlkpuWaRIXrSMIUF7KabmOqrS1Sr5Ny7iy0Ee8"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 In-Reply-To: Cancel-Lock: sha1:gmwBvrbuQ+zR5uYR2dvHUH9nbwI= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3611 On 05/05/2011 06:00 PM, Andreas Leitgeb wrote: > Lew wrote: >> markspace wrote: >>> Dirk Bruere at NeoPax wrote: >>>> I need it to match the packet i/f [?] specs designed by somemone else that >>>> requires text characters be sent as decimal ascii [sic] >>> That's a really odd requirement. Your spec might mean just regular text. Not >>> ascii text, as in the character 9 followed by the character 7, but just 'a' as >>> a literal 97 byte value. >> What value does that spec indicate to transmit, say, the characters 'æ' or >> 'À', Dirk? > > Or for this one 'µ' (\u00b5) or perhaps that one 'μ' (\u03bc) ? :) > I tend to assume, that the mentioned 'someone else' either just didn't > think of international letters, or thought of those and consciously > discarded them as irrelevant for this particular packet i/f... > > PS: My guess is, that i/f means interface. Neither of the values you cited (\u00b5 or \u03bc') is an ASCII value, and therefore does not meet the stated spec. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg