realbasic-betas.mbox
[Top] [All Lists]

Re: test unicode RB 5.5

To: "REALbasic Betas" <realbasic-betas at lists dot realsoftware dot com>
Subject: Re: test unicode RB 5.5
From: Thomas Reed <tareed at bitjuggler dot com>
Date: Tue, 30 Sep 2003 08:10:04 -0400
References: <1831C520-F331-11D7-9907-00039394D46E at tiscali dot fr>
test
with BBEdit Lite for OSX create a textfile with high asciis

There's no such thing as "high ASCIIs". ASCII characters only lie between 0 and 127. Anything above that is not ASCII, and can only be interpreted by knowing what encoding the text has.

Since this is BBEdit Lite we're talking about (which doesn't know diddly about Unicode), I'm guessing your file is MacRoman.

then read it with RB 5.5. Mac OSX
you"ll have garbage and you'll able to do nothing

You need to tell RB what encoding the text has. If you're reading it with a TextInputStream, set its Encoding property to Encodings.MacRoman. Or you can apply an encoding after the fact using:

  s = s.DefineEncoding(Encodings.MacRoman)
--

-Thomas

Personal web page:                    http://homepage.mac.com/thomasareed/
My shareware:                                   http://www.bitjuggler.com/
REALbasic page:                           http://www.bitjuggler.com/extra/

There are 10 kinds of people in the world -- those who understand binary
numbers and those who don't.

- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>