• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: printf functions fail with non-ascii characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: printf functions fail with non-ascii characters
      • From: Alastair Houghton <email@hidden>
References: 
 >printf functions fail with non-ascii characters (From: "William H. Schultz" <email@hidden>)

  • Prev by Date: Re: printf functions fail with non-ascii characters
  • Next by Date: command-line test for 64-bit hardware?
  • Previous by thread: Re: printf functions fail with non-ascii characters
  • Next by thread: Re: printf functions fail with non-ascii characters
  • Index(es):
    • Date
    • Thread