Re: NSLocalizedString() doesn't work
Re: NSLocalizedString() doesn't work
- Subject: Re: NSLocalizedString() doesn't work
- From: Douglas Davidson <email@hidden>
- Date: Mon, 22 Mar 2004 10:26:25 -0800
On Mar 22, 2004, at 9:16 AM, Michael Becker wrote:
Now using NSLocalizedString(@"Key", nil), I get this error:
004-03-22 18:11:54.804 PhotoClient[2038] CFLog (0):
CFPropertyListCreateFromXMLData(): plist parse failed; the data is
not proper UTF-8. The file name for this data could be:
/Users/michaelbecker/Business/iplabs/PhotoClient/build/
PhotoClient.app/Contents/Resources/Localizable.strings
The parser will retry as in 10.2, but the problem should be corrected
in the plist.
My Localization.strings is no plist. I never knew it was supposed to
be one... So right now I am a little lost.
The standard .strings file format is a special case of the general
property list formats, and it goes through the standard property list
reading code, so in fact you could use any of the property list formats
for .strings files. The standard .strings file format is just the one
that is usually most convenient for .strings files. If you are using
it, then you should use UTF-16 for the encoding rather than UTF-8. If
you were using the XML property list format instead, then you would
want to use UTF-8.
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.