This is one of the most frequent questions. AmCharts can display text in Chinese, Japanese, Russian, Arabic, Hebrew and other languages, as well as special letters of Latin-based alphabets. The main trick is the following: you have to save your data or settings (or HTML if your data or settings are inside it) files using UTF-8 encoding.
Most commonly, UTF-8 encoding is specified by the following line, placed at the beginning of the XML file:
<?xml version="1.0" encoding="UTF-8"?>
However, this is not always enough. Different text editors have different ways of settting the encoding of the file contents. For example, in PSPad the encoding is set under the "Format" menu.
You can set encoding with Notepad when saving the file:
1) Click File→Save as… 2) In the "Save as" window. locate the "Encoding" dropdown list. 3) Select "UTF-8". 4) Save the file.
Note that your special characters in the data or settings file should look as they are. You can't use entities - they will not be parsed.
| © Antanas Marcelionis Contact and feedback: info@amcharts.com | Subscribe to amCharts news |