Special Characters? like ü, ö, ä, ß
Any idea how to implement this characters.
Tried it the html way, but no way, errors:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSCFString appendString:]: nil argument'
5 Answers
-
Accepted Answer
You might try using java encoding notation
\uXXXX
, where XXXX is a hex code of the Unicode symbol:Titanium.UI.currentWindow.setTitle('\u00DCberblick');
Also, you might probably want to keep source code in plain English and, on top of that, do localization into German or any other language, where locale-specific files use UTF-8 encoding. Please see my <a href="http://support.appcelerator.net/discussions/announcements/289-ann-titanium-l10n-framework">Titanium L10N framework</a> for inspiration and source code. (Shameless promotion, I know.)
-
can you post the code in question so we can see what you're attempting to do (pastie.org)?
-
Hi Kevin,
its a very simple snippet:
Titanium.UI.currentWindow.setTitle('Überblick');
-
Is there a function that can do this?
string2unicode('Überblick'); ?
-
How we can do the same in string.xml file ? as the app is uses I18N.