Title: Charset Display german umlaut Post by: jaimi on February 28, 2014, 11:55:03 PM Hello,
I have a annoying thing with german umlaut. I tried several things but I could get it running properly. All started with the json unability to encode Strings others than utf-8. I changed the meta-tag in the html-page to utf-8. The display of the site now is ok. But when I write geman umlaut within the data-grid the server gets some strange signs back. The message box regarding to the datagrid also displays the umlaut wrong (see attachement). What is the problem? Has anyone an idea? Thanks Jaimi Title: Re: Charset Display german umlaut Post by: rezzonico on March 20, 2014, 01:43:11 AM Hi Jaimi,
I work with german umlaut too. This is what I do: 1) When I create the database the first line is: CREATE DATABASE /*!32312 IF NOT EXISTS*/ `DbName` /*!40100 DEFAULT CHARACTER SET utf8 */; 2) The first line of my html files is: Content-type: text/html; charset=utf-8 3) When I output the json string from my cgi-script I use the following command: $json = JSON::XS->new->latin1->encode (\%array); ... yes ... latin1 Regards Miche |