Reputation: 557
I have a simple program on the App Store using all standard UIKit controls, now some reviewers are complaining Cyrillic and Korean is not supported? Are the UIKit controls not using Unicode out of the box?
How can I fix this issue ?
Upvotes: 3
Views: 827
Reputation: 61378
All Cocoa NS/CFStrings are Unicode-compliant (UCS-2 internally), Russian and Korean alphabets included. So unless your data are, at some point, passed through a single-byte-char format (a C char[]
string, for example), all sensible languages and charsets should be supported automatically. Pay careful attention to your storage and wire formats; that's where ASCII usually lurks.
If downloading data from the Web or from an HTTP-based API, pay close attention to the charset within Content-Type header. When converting from NSData or raw memory chunks to NSString, encoding is always one of the parameters.
And, like CajunLuke said, start by reproducing the issue. If you need a "lorem ipsum"-type text, copy and paste some random nonsense from the respective Wikipedia.
I have an app in the store that deals with Russian and Japanese at the same time (it's a Japanese-Russian dictionary). No special measures were taken to ensure national charset support; however, whenever working with single-byte string, I'd keep in mind what charset is it in.
Upvotes: 2
Reputation: 4985
I just tested Japanese yesterday - and it worked (for predefined text strings, like Cancel and Done) in the Simulator "out of the box". Checking System Preferences > Language & Text, I see that I have many languages supported (something I did intentionally when I installed OS).
I'm assuming that you've already read Apple's Internationalization Programming Topics.
To see localized text, you will (for the most part) have to create it yourself and put it in Localizable.strings and .XIB files; and you will want to read up on NSLocalizedString().
Upvotes: 0