Unicode

Introduction

Support for Unicode is available and is the preferred approach for including special characters in a string.

Visit the Unicode table to lookup the Unicode number for a given character.

Working with Unicode

Often, a string will need to include a special character that is not available on your keyboard, including characters from other alphabets and emoji. This is where Unicode comes in.

In this example, we need to include the left-angle quote («) and right-angle quote (») characters for a fr-CA translation:

`Bob dit \u00AB bonjour \u00BB \u1F60A`

The result is:

Bob dit « bonjour » 😊

Unicode vs HTML Entities

Last updated