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: Jacquot Jules <jacquot dot jules at tiscali dot fr>
Date: Tue, 30 Sep 2003 18:54:43 +0200

Le mardi, 30 sep 2003, à 15:00 Europe/Paris, REALbasic Betas a écrit :

Subject: Re: test unicode RB 5.5
From: "Thomas Reed" <tareed at bitjuggler dot com>
Date: Tue, 30 Sep 2003 08:10:04 -0400

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)
--


please, William and Thomas don't think that i am a very newbie of unicode.
I know that you tell and i claim that RB 5.5 knows only one code : UTF8
RB 5.5 doesn't know Defineencoding and convertencoding other code than UTF8.
Maybe i'm wrong. Maybe the correct syntax has modified. I don't know.
that is why i ask the test.
So do it before.

thanks

jules

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