• 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: Localizable.strings file with extra ^@ symbols everywhere
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localizable.strings file with extra ^@ symbols everywhere


  • Subject: Re: Localizable.strings file with extra ^@ symbols everywhere
  • From: Trever Wilhelm <email@hidden>
  • Date: Fri, 23 Apr 2004 11:45:31 -0700

It wasn't Vim that was causing the problem.  That's just where I noticed the
extra characters.  The strange behavior was inside Xcode when I tried to do
things like double click a word to highlight it.  It would only highlight
one character.  It's as if Xcode's editor didn't understand the word
boundaries in UTF-16.

The other odd behavior was having to press the right arrow key twice to move
one character, and the build warning messages.

Thanks everyone for the replies.

Trever

> From: Scott Tooker <email@hidden>
> Date: Fri, 23 Apr 2004 11:42:21 -0700
> To: Chris Ridd <email@hidden>
> Cc: "email@hidden" <email@hidden>, Trever
> Wilhelm <email@hidden>
> Subject: Re: Localizable.strings file with extra ^@ symbols everywhere
>
> .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.
_______________________________________________
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.


  • Follow-Ups:
    • Re: Localizable.strings file with extra ^@ symbols everywhere
      • From: Shawn Erickson <email@hidden>
References: 
 >Re: Localizable.strings file with extra ^@ symbols everywhere (From: Scott Tooker <email@hidden>)

  • Prev by Date: Re: Localizable.strings file with extra ^@ symbols everywhere
  • Next by Date: Re: Resource forks
  • Previous by thread: Re: Localizable.strings file with extra ^@ symbols everywhere
  • Next by thread: Re: Localizable.strings file with extra ^@ symbols everywhere
  • Index(es):
    • Date
    • Thread