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 13:25:34 -0400
References: <CA0AE492-F366-11D7-A5C2-00039394D46E at tiscali dot fr>
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.

Perhaps I'm not understanding due to the language barrier, but it sounds like you believe RB 5.5 can only deal with text in the UTF-8 encoding. That's absolutely not true, as should be quite obvious from the snippet of code you quoted from my post:

  s = s.DefineEncoding(Encodings.MacRoman)

Obviously this defines the encoding as something other than UTF-8. And if you're just concerned with Unicode variants, RB also can convert to/from UTF-16. Try:

  s = s.DefineEncoding(Encodings.UTF16)

(Of course, DefineEncoding does not convert, it simply defines the encoding of a string read from some external source.)

Further, as Joe and I mentioned, BBEdit Lite does not do Unicode, so how are you using it to test handling of Unicode in RB?
--

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