Houston! I have a problem!
As people may or may not remember, on my horsefrog.com site I changed the config.php over to UTF8. Everything on the site works fine. However, when I run the cron, the automated e-mails that are sent out are full of "mojibake" if any Japanese characters are included. Any ideas on how I can fix this?
Cheers,
James Phillips
Strange....I found that UTF_8 was less likely to mojibake.
Hold on...I don't think that I changed the config.php to UTF8, merely the language setting from the GUI.
Doesn't it say something like "this is experimental"? I think that the config.php may change the way that data is stored in the database - effectively making the whole database a UTF8 database.
I think that in my systems, while the GUI and input Japanese text is stored as UTF8, the rest of the database is stored as ASCII or something else, so that when I look into the database these days, it is not so easy to see what is going on, and when I look at backup files, the Japanese text appears as mojibake inside them. But other than that, as long as I do not look directly into the database, or backup files, it seems to work okay. Not ideal though.
Try removing the setting in config.php
Hold on...I don't think that I changed the config.php to UTF8, merely the language setting from the GUI.
Doesn't it say something like "this is experimental"? I think that the config.php may change the way that data is stored in the database - effectively making the whole database a UTF8 database.
I think that in my systems, while the GUI and input Japanese text is stored as UTF8, the rest of the database is stored as ASCII or something else, so that when I look into the database these days, it is not so easy to see what is going on, and when I look at backup files, the Japanese text appears as mojibake inside them. But other than that, as long as I do not look directly into the database, or backup files, it seems to work okay. Not ideal though.
Try removing the setting in config.php
Hmm. I am not quite sure how to do this. I cannot see any references to UTF-8 or ISO-2022-JP in the moodlelib.php file.
The relevant strings appeared to be:
$SESSION->encoding = get_string('thischarset');
and
$mail->Encoding = 'quoted-printable';
Should I change these to something else?
The relevant strings appeared to be:
$SESSION->encoding = get_string('thischarset');
and
$mail->Encoding = 'quoted-printable';
Should I change these to something else?