iphone - ibtool generates .strings file that are unreadable in xcode -


I am using ibtool to localize my Nibbet I run the following command:

  ibtool - generate-strings-file manmenu.string en.lproj / MainMenu.nib  

then I was generating. File in the string expo project so that I can post it later Can reference and edit

When I do this, if I select the .strings file in .code, then it displays a top bunch of question marks and litter. However, if I do not add the file and manually select it to use the encoded, then it reads the file completely.

I can only guess that the ibtool file is encoding in an unreadable xcode format.

If I open the file. File the strones in the exode, copy the contents to the clipboard, close the file, add the string file to the exode, the contents of the waste in the clipboard w / material By replacing, and then save the file, it's okay.

Thank you!

Thank you!

Yes, by any means the XCode specification fails to auto-detect the encoding of the file expected Which is UTF-16. But when you add the generated file to XCode, you have the option of selecting character encoding (this is omitted in UTF-8) under the "Copy of item in the rights group folder" checkbox should be a dropdown on the right . Just choose UTF-16 and you should be fine. You can also choose encoding in which the XCode file opens at any time afterwards. To do this, right-click the wire file, select "Get Info" and you should get a drop down list of encoding.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -