Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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'

— asked March 12th 2010 by Bruno Mandolesi
  • characters
  • special
  • ü
  • ä
  • ö
  • ß
0 Comments

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.)

    — answered March 12th 2010 by Igor Afanasyev
    permalink
    0 Comments
  • can you post the code in question so we can see what you're attempting to do (pastie.org)?

    — answered March 12th 2010 by Kevin Whinnery
    permalink
    0 Comments
  • Hi Kevin,

    its a very simple snippet:

    Titanium.UI.currentWindow.setTitle('Überblick');

    — answered March 12th 2010 by Bruno Mandolesi
    permalink
    0 Comments
  • Is there a function that can do this?

    string2unicode('Überblick'); ?

    — answered March 14th 2010 by Vo lante
    permalink
    0 Comments
  • How we can do the same in string.xml file ? as the app is uses I18N.

    — answered March 30th 2014 by AvtarSingh Suchariya
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.