ronan-gloo/codeigniter-highcharts-library

Accented characters

Closed this issue · 2 comments

Can't use accented characters for labels or titles, for example using letter "é" I got "u009C" rendered. Using a jsfiddle example of highchart, entering there letter "é", renders well.

I got the same problem and found the solution.

The problem resides in the encode function from the library class.

Change this line:
$options = str_replace('\\', "", json_encode($options));

To this:
$options = preg_replace('#(\\\)[^u]#', '/', json_encode($options));

Thank you , marvellous solution ! :)