EasyUI Forum
September 13, 2025, 11:51:46 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Charset Display german umlaut  (Read 7917 times)
jaimi
Full Member
***
Posts: 121


View Profile
« 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
Logged
rezzonico
Full Member
***
Posts: 186


View Profile
« Reply #1 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
  
« Last Edit: March 20, 2014, 02:41:26 AM by rezzonico » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!