Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

UTF32 encoding?? (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: Where is encoding stored?
Next thread: RB's unicode new features


Re: Plugins website   -   Troy A. Dix
  UTF32 encoding??   -   Theodore H. Smith
   Re: UTF32 encoding??   -   Joseph J. Strout
    Re: UTF32 encoding??   -   Theodore H. Smith

UTF32 encoding??
Date: 06.06.02 22:10 (Thu, 6 Jun 2002 23:10:24 +0200)
From: Theodore H. Smith
I guessed this for UTF32.

0x0C000100

No idea if it is right or wrong.

08000100

thats UTF8.

The Apple and RB docs say that UTF8 has a number of 2, and UTF32 has
a number of 3. So divide 8 by 2 to make 4, multiply by 3 to make C.

*sigh*

Well it will do until I get a better answer.

I'm not sure where the transformation information is though. I did
read it, once, but I can't remember where.

Re: UTF32 encoding??
Date: 07.06.02 04:29 (Thu, 6 Jun 2002 20:29:18 -0700)
From: Joseph J. Strout
At 11:10 PM +0200 6/6/02, Theodore H. Smith wrote:

>I guessed this for UTF32.
>
>0x0C000100
>
>No idea if it is right or wrong.

Looks wrong to me. As far as I can see (TextCommon.h), there is NO
encoding that represents UTF32. You'll have to convert your text to
something else before returning it to RB, if you want RB to make any
sense of it.

Sorry,
- Joe

Re: UTF32 encoding??
Date: 07.06.02 02:05 (Fri, 7 Jun 2002 03:05:58 +0200)
From: Theodore H. Smith
>> I guessed this for UTF32.
>>
>> 0x0C000100
>>
>> No idea if it is right or wrong.
>
> Looks wrong to me. As far as I can see (TextCommon.h), there is NO
> encoding that represents UTF32. You'll have to convert your text to
> something else before returning it to RB, if you want RB to make any
> sense of it.

Apple have a standard way of encoding Unicode + variant, in just
one unsigned long. 2 results in 0x08000100. Its not just random
assignment.

I'll have to find out what the standard way is. I read it a while back
but I forgot what it is and where its described.

I don't need RB to do mid/len, etc on UTF32. Just drawing is all
I need.