possible solution to problem of displaying multibyte character

possible solution to problem of displaying multibyte character

gan Zhang dexuan -
Number of replies: 4

PHPNuke is a multilanguage websit-builder package writed in php too, and its multibyte character languages work fine. It's language package files use the function define("...","...") rather than $string('...')="..." in Moodle.  In functional php files, PHPNuke calls the defined strings directly, eg echo "something"._DEFINEDSTRING."another strings".........

Can Moodle try this method?

 

Cyfartaledd sgoriau: -
In reply to Zhang dexuan

Re: possible solution to problem of displaying multibyte character

gan Martin Dougiamas -
Llun o Core developers Llun o Documentation writers Llun o Moodle HQ Llun o Particularly helpful Moodlers Llun o Plugin developers Llun o Testers
Well, not only would it be a big change, but Moodle's method is much more flexible than PHPNuke. It allows variable substitution on-the-fly and the ability to "fall back" to English if the string hasn't been defined yet.

So no, it won't change.

Which multibyte problems do you mean, anyhow? Chinese and Japanese display perfectly for me.
In reply to Zhang dexuan

Re: possible solution to problem of displaying multibyte character

gan Mitsuhiro Yoshida -
Llun o Core developers Llun o Documentation writers Llun o Particularly helpful Moodlers Llun o Translators
Hello.

Now I'm using Moodle in WinXP + MySQL3.23.53 + PHP 4.2.3 + Apache 2.0.43.

For the first time I could not see Japanese EUC-JP code correctly. But changing Apache httpd.conf setteing I can see pages well. If you are using Apache, please try this change.

This is what I done.

*before
AddDefaultCharset ISO-8859-1

*after(comment out)
# AddDefaultCharset ISO-8859-1

In reply to Mitsuhiro Yoshida

Re: possible solution to problem of displaying multibyte character

gan Zhang dexuan -

Cheers, you are great, Mitsuhiro!

Now, it works pretty fine! I so love it!

You are right, Martin, Moodle's method is much more flexible than PHPNuke. Excuse me.