Problem with Japanese character (get garbled)

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
shelley
Posts: 2
Joined: Wed Oct 17, 2007 9:47 am

Problem with Japanese character (get garbled)

Post by shelley »

I have installed phpMyFAQ, and I'm going to try to edit.
When I add Japanese text, the characters are garbled. :(
(The characters turn into like "??????")

I suppose it might be a problem with configuration of php.ini and MySQL.
But I can't fix the problem. (My knowledge of php and MySQL is poor.)
I would appreciate knowing about how to fix this problem.

---
Environment

[mySQL ver.4.1.20]
character_set_client ujis
character_set_connection ujis
character_set_database ujis
character_set_results ujis
character_set_server ujis
character_set_system utf8
character_sets_dir /usr/share/mysql/charsets/

[php.ini]
mbstring.language = Japanese
mbstring.internal_encoding = EUC-JP
mbstring.http_input = auto
mbstring.http_output = SJIS
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = none;
---
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

please use UTF-8 in MySQL.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
shelley
Posts: 2
Joined: Wed Oct 17, 2007 9:47 am

Post by shelley »

Hi, thank you for reply.

Though I remake a database with "UTF-8", the characters are still garbled.

Actually, the server is a rental server, so I can't change the server
settings(character_set) freely.
Is it difficult to use phpMyFAQ in this environment?
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

no, a lot of people are using it with Japanese. What you can try is to rewrite the Japanese language file from lang/language_jp.php in your preferred character set.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply