How to Create App Names with Special Characters

If you’re building cross-platform, native mobile apps with Titanium, you may have come across a need to have an app name that includes special characters like “Tom & Jerry” etc.

If you try to set the name in your Tiapp.xml file, you’ll hit errors when building the app.

Thankfully, there’s a simple solution which involves using the internationalization features of Titanium — or i18n configuration.

Call the app by any name you like in the Tiapp.xml file. Then, create a file called app.xml in the app/i18n/en (assuming you’re using Alloy and the language is English).

Copy and paste the following into the file:

<?xml version="1.0" encoding="UTF-8"?>
    <string name="appname">Tom & Jerry</string>


Then, build the app as normal. When the app is built and run, Titanium will use the app name as defined in the XML file and your app should be named “Tom & Jerry”.

For more info: Titanium SDK Internationalization Docs

Happy Coding!

Previous articleIMAGINE SUMMIT Americas: Learn what’s happening!
Next articleCare for the future: OOP conference in Munich (Article in German)
Developer Evangelist at Axway • Freelance cross-platform developer • Speaker/Author • host of The Checked Shirt and Titanium Talk podcasts • Mencap ambassador • Regular on BBC Wiltshire Radio, Monday nights at 9.15pm talking apps • Dad of 5, Rosie with T21


Please enter your comment!
Please enter your name here