Re: printf functions fail with non-ascii characters
Re: printf functions fail with non-ascii characters
- Subject: Re: printf functions fail with non-ascii characters
- From: Peter Mulholland <email@hidden>
- Date: Wed, 5 Sep 2007 19:22:59 +0100
Hello William,
Wednesday, September 5, 2007, 6:40:59 PM, you wrote:
<snip>
> Any ideas?
Yes. Unicode and C don't mix.
The ANSI standard has missed a big opportunity here - basically, if
you use any encoding other than the format that the standard library
expects, forget it - it breaks. For Apple this is UTF-32, which is
particularly moronic of Apple when everyone else, even their own Core
Foundation stuff, uses UTF-16!
Make sure your data files are in UTF-32 and you'll be OK. As for text
embedded in source, then in all likelyhood you're SOL.
--
Best regards,
Peter mailto:email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden