0

I installed Konakart successfully. I am using MySQL database and set utf-8 encoding. In addition I add russian language, but when I create new user and specify name with russian character in the database displayed onlly ??? signs. If I point to the database manually, everything is displayed correctly.

UPDATE

character from database displayed correctly, but some problems encoding occurred with file properties Messages.properties

Von Lion
  • 748
  • 4
  • 22
user1480528
  • 37
  • 2
  • 8

2 Answers2

0

I've had similar issues. First thing to do is find out what exactly has been written to the database. This is very easy with MySQL, just logon and run

SELECT HEX( column ) FROM table;

Though from what you're saying, the correct bytes are in the database already. Next thing is to check what character set your connection from Konakart is set to. After you've connected, run "SHOW VARIABLES LIKE 'character_set_%'" and print out the results. If nothing else it's a useful check to see if the character set options you've specified have taken.

This other question might be useful.

Community
  • 1
  • 1
chooban
  • 9,018
  • 2
  • 20
  • 36
  • thanks, character from database displayed correctly, but some problems encoding occurred with file properties Messages.properties – user1480528 Dec 04 '12 at 14:15
0

Properties files should be saved as ISO-8859-1 files

You can add your special characters using a \uXXXX format or create a UTF-8 version of the Properties file and use native2ascii to convert it.

eg:

native2ascii -encoding utf8 myProps.utf8 myProps.properties

Greg
  • 1