Unicode does not convert when displayed

I localize the application in Spanish and the characters are encoded in the Localizable.strings file for this language using Unicode. For example, I have an entry:

"login.saveSettings"="Guardar configuraci\\u00F3n:"; 
which is displayed in UILabel in the same way ("Guardar configuraci \\ u00F3n:") instead of "Guardar configuración:". I tried various options, such as "\ u00F3" or "\\ U00F3", but without any success.

I am using NSLocalizedString as follows:

 self.saveSettingsLabel.text = NSLocalizedString(@"login.saveSettings", @"Save Settings:"); 

What am I doing wrong?

Thanks for any help! Mihai

+7
iphone unicode localization nslocalizedstring
source share
2 answers

The correct version is \U00F3 with 1 backslash and capital U.

+25
source share

I ended up discovering a small Java program that replaces any Unicode sequence with an actual character: Convert from javascript-escaped Unicode to Java Unicode

0
source share

All Articles