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"?>
<resources>
    <string name="appname">Tom & Jerry</string>
</resources>

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!