Hi,
The module works as promised, but a Japanese course title from Moodle (ドイツ語レッスン) gets mangled in Drupal and displays only as ????????.
The encoding of both databases is utf8_unicode_ci.
Frank
Hi,
The module works as promised, but a Japanese course title from Moodle (ドイツ語レッスン) gets mangled in Drupal and displays only as ????????.
The encoding of both databases is utf8_unicode_ci.
Frank
Comments
Comment #1
borgo commentedI can confirm this
Any special chars like čšľšť etc. will prevent title from displaying.
Removing check_plain() helps a little, but thats not the way to go I suppose
Comment #2
frank ralf commentedLooks like the function isn't fully UTF-8 compatible. I only had a quick look at the API documentation of check_plain(). It uses drupal_validate_utf8() which in turn uses the PHP function preg_match():
Haven't done any further investigating or testing yet.
Comment #3
darafsheh commentedHi guys,
the solution to this problem is actually quite easy. all you have to do is to set the mysql charset to utf-8 by adding this line:
mysql_set_charset("UTF8");
So it would look something like this:
i hope this works.
thanks,
shar
Comment #4
frank ralf commentedThanks, Shar, that did the trick!
Comment #5
agerson commentedComment #6
agerson commentedComment #7
agerson commented