Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use Unicode with Carbon



On 6/12/07, Laurence Harris <email@hidden> wrote:
They should support the presence of a BOM.

They support. But what happens is that the presence of the BOM tells the compiler that I am using my file in UTF-8, but not only that. It also tells the compiler that I want it to automatically convert my strings from UTF-8 to whatever the operating system expects.

Therefore FPC correctly handled my UTF-8 strings and tryed to convert
then to the codepage of my operating system (probably latin ISO), and
my simbols have no ISO correspondent, so they would be removed.

By not using BOM I am not telling the compiler anything, so it won't
do any automatic conversions.

I could also use BOM, but still set the codepage compiler directive in
my code to get the behavior I want, which is no automatic encoding.

It may not technically be a bug since they don't claim to support a
BOM

that's not what was claimed.

--
Felipe Monteiro de Carvalho
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: How to use Unicode with Carbon (From: Ingemar Ragnemalm <email@hidden>)
 >Re: How to use Unicode with Carbon (From: "Felipe Monteiro de Carvalho" <email@hidden>)
 >Re: How to use Unicode with Carbon (From: "Felipe Monteiro de Carvalho" <email@hidden>)
 >Re: How to use Unicode with Carbon (From: "Felipe Monteiro de Carvalho" <email@hidden>)
 >Re: How to use Unicode with Carbon (From: Laurence Harris <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.