0

I am creating a .strings from a .nib file. That is I'm changing the .nib file to a localized string file on Xcode 9.2.

Now I'm getting the .strings file with all the strings as required and the layout according to the base .xib file.

The problem arises when I check out the strings file and shelve it. The shelved file now suddenly is in Chinese. I can read it properly when I put it in some editor and change the encoding to Chinese(CP936 GBK).

But when I run the code, the strings appear perfectly as they were supposed to in all languages. Is there a way to submit the file to perforce without getting this weirdly encoded file?

ShdwKnght333
  • 300
  • 4
  • 23

1 Answers1

1

I think Perforce is mis-detecting the "filetype" of your file.

  • If you're using P4V, right-click the file > Change Filetype. What's the "Base Filetype"?
  • If you're using the cmdline client, run p4 fstat FILENAME. What's the "type"?

Probably all you have to do is change the filetype to the correct value.

Read more about this at https://www.perforce.com/perforce/r15.1/manuals/p4guide/appendix.filetypes.html.

sferencik
  • 3,144
  • 1
  • 24
  • 36