amCharts Documentation
Search:     Advanced search
Browse by category:

How to display language-specific characters in amCharts

Views: 728

This is one of the most frequent question. AmCharts can display  text  in Chinese, Japan, Russian, Arabic, Jewish and other languages, also 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 html) files using UTF-8 encoding.

It's not enough to have this line in the top of your XML:

<?xml version="1.0" encoding="UTF-8"?>

Different text editors has a different place where encoding of the file is set. For example, in PSPad encoding is set under "Format" menu.

You can set encoding with Notepad when saving the file:

1) Click File->Save as...
2) in the "Save as" window locade "Encoding" dropdown.
3) select "UTF-8"
4) save the file

Note, that your special characters in data or settings file should look as they are. You can't use entities - they will not be parsed.

Others in this Category
document Using colons and dots in data or settings urls
document Labels in data file
document Exporting charts as PDF and some image formats using third party software
document Most frequent errors made during amCharts install
document Rotated axis values and language-specific characters