Re: Localizable.strings file with extra ^@ symbols everywhere
Re: Localizable.strings file with extra ^@ symbols everywhere
- Subject: Re: Localizable.strings file with extra ^@ symbols everywhere
- From: Scott Tooker <email@hidden>
- Date: Fri, 23 Apr 2004 11:42:21 -0700
.strings files are always set to use UTF-16 since they need to support
languages with 2-byte characters like Japanese or Chinese. It doesn't
surprise me that vim may not properly display UTF-16.
Scott
On Apr 23, 2004, at 11:19 AM, Chris Ridd wrote:
> On 23/4/04 6:21 pm, Trever Wilhelm <email@hidden> wrote:
>
>> Hello,
>>
>> Does anyone know why my Localizable.strings files might contain ^@
>> characters between every letter in the file? When I look at the file
>> in
>> Xcode, it looks like a normal text file. But if I open it in Vim, I
>> see the
>> control characters between every character in my file.
>
> The file's been saved as UTF-16, which is a way of encoding Unicode
> using 2
> bytes per character. Since most of your text is probably ASCII, the
> high
> bytes (ie every other byte) will be \0.
>
> I think UTF-16's the preferred encoding for Localizable.strings, but
> you
> could change the encoding inside Xcode, and maybe play around with
> cutting
> and pasting to get the text into your source.
>
> Cheers,
>
> Chris
> _______________________________________________
> xcode-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/xcode-users
> Do not post admin requests to the list. They will be ignored.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.