Japanese words dosen't show properly

Hello,
I installed Zen Photo 1.2.5. to rental server I use.

The server is not supported PHP get text() and PHP locale (). So language translation is not worked and if I use Japanese words to title, it doesn't show properly.

Please be advised that how to show Japanese words properly without using PHP gettext and locale.

You can check it at http://www.e-okabe.jp/zenphoto/
The name of foloder and titles are not shown properly.

Thank you in advance for your advice.

Comments

  • acrylian Administrator, Developer
    The display of Japanese strings is not related to gettext/locale, only translation funcionality is. You need to check all encodings on your server and mysql database to be UTF8.

    Also note that if you use the upload form album names are cleared SEO wise since Japanese characters are considered "special characters" most systems do not support in file and folder names. You can try to disable the `filter-zenphoto_seo.php` plugin.
    Additionally you can try uploading folders/files with Japanese via FTP directly to see if that works.

    Also please try the 1.2.6 RC2 if possible so that we can fix possible bugs.
  • > acrylian

    Thank you for your advise.

    I disabled "filter-zenphoto_seo.php" plugin and uploaded folders/files with Japanese via FTP directly. Unfortunately, Japanese characters are not displayed properly.

    Then I upgraded Zen Photo to 1.2.6 RC2, but the same thing. When I upgrade to 1.2.6 RC2, the warning message below I found. Is this the cause not displaying Japanese characters properly?

    PHP mbstring package [Your internal characater set is EUC-JP]

    Warning!

    Setting mbstring.internal_encoding to UTF-8 in your php.ini file is recommended to insure accented and multi-byte characters function properly.

    The server I use is Rental server and I can not change PHP.ini setting. Please be advised what should I try.
  • This setting is in your PHP.ini file so should be settable on for an individual site. Please discuss this issue with your service provider.
  • Thank you for your advise.

    I asked service provider and their answer is to add below 2 lines to ".htaccess" file.

    php_flag mbstring.encoding_translation off
    php_value default_charset "UTF-8"

    The setting of PHP is out of their support and Zen Photo is not their service. So they said they do not provide any support on this matter.

    If I upload ".htaccess" added the above 2 lines to the server, I can not open "setup.php" and "Internal server error" message is appeared.

    Please be advised how I add the above to ".htaccess".
  • acrylian Administrator, Developer
    You need to add those lines before ``.
  • I inserted those lines before <IfModule mod_rewrite.c>, but "Internal server error" message is appeared.

    Server OS: Linux 2.6.25.3
    Web Server: Apache_1.3.37
    My SQL: 5.0.27
    PHP: 5.2.8
    phpMyAdmin: 2.11.9.5

    The belows are server specifications and I can not change them.

    The value of default mbstring;
    mbstring.detect_order = auto
    mbstring.encoding_translation = On
    mbstring.func_overload = 0
    mbstring.http_input = auto
    mbstring.http_output = pass
    mbstring.internal_encoding = EUC-JP
    mbstring.language = Japanese
    mbstring.substitute_character = "設定値なし"

    php.ini;
    default_charset = "EUC-JP"
  • acrylian Administrator, Developer
    Sorry, since you got the info to add those lines by your provider twe probably can't help with that.
Sign In or Register to comment.