Re: Question on STRINGS_FILE_OUTPUT_ENCODING
Re: Question on STRINGS_FILE_OUTPUT_ENCODING
- Subject: Re: Question on STRINGS_FILE_OUTPUT_ENCODING
- From: glenn andreas <email@hidden>
- Date: Wed, 10 Nov 2010 08:09:34 -0600
On Nov 10, 2010, at 7:49 AM, Ulf Dunkel wrote:
> Hi Joar.
>
>> Because Mac OS X expects for strings files found in frameworks and app bundles to be encoded in UTF-16.
>
> Is there any Apple statement on this? I wonder why our apps work fine with UTF-8 built .strings files? ;-)
>
>> This feature of Xcode 3.1 allows the developer to keep the "source copy" of the strings file in any encoding that they want, typically UTF-8 - which is friendlier to SCM (diffing) and other tools - and only convert it to the expected UTF-16 as the file is copied over to the final build product.
>
> But building with a different encoding from what you use in the source would cause more problems when external localizers have to handle the files.
>
> I really cannot believe that UTF-16 should be a MUST for built apps. Please explain to me where Apple states and requires this.
>
From <http://developer.apple.com/library/ios/#documentation/cocoa/Conceptual/LoadingResources/Strings/Strings.html>:
Note: It is recommended that you save strings files using the UTF-16 encoding, which is the default encoding for standard strings files. It is possible to create strings files using other property-list formats, including binary property-list formats and XML formats that use the UTF-8 encoding, but doing so is not recommended. For more information about the standard strings file format, see “Creating Strings Resource Files.” For more information about Unicode and its text encodings, go tohttp://www.unicode.org/ or http://en.wikipedia.org/wiki/Unicode.
And:
To create a strings file manually, create a new file in TextEdit (or your preferred text-editing application) and save it using the Unicode UTF-16 encoding.
And:
Note: The genstrings tool always generates strings files using the UTF-16 encoding. If you include Unicode characters in your strings and do not use genstrings to create your strings files, be sure to save your strings files in the UTF-16 encoding.
Glenn Andreas email@hidden
The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL
_______________________________________________
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