Character encoding issue (was Text encoding for spanish & italian)

Character encoding issue (was Text encoding for spanish & italian)

by Maria Tsiakmaki -
Number of replies: 2
Hello,
I have problem with the language of the Scrom files. Although I can see them correctly offline through the moddle's  data directory, when I try to load them through moodle the Greek characters appear as Chinise:

ⴼ煫圊⥳癮汰捭楯≥‬攠Ⱒ⁥琠〽̠αρμογή쌃쀃넃렃긃쌃쐃딃 ≮灨ͯπεδο㸠≰쑳넃 瀠❧㘢뱡갃렃뜃밃넃 敲琧愶μάθημα̠ξη琠渍の猱

The Scorm file contains a index of links of the lessons (in greek, which I can see correct) and every link is a pop up window (in Shockwave and Director format), which I does not appear correctly (is appears as above).

In the weblib.php file the lines

$meta = '<meta http-equiv="content-type" content="text/html; charset='. $encoding .'" />'. "\n". $meta ."\n";
    if (!$usexml) {
        @header('Content-type: text/html; charset='.$encoding);
    }

exists.

But in the Apache's  http.conf file the default Characher Set is ISO-8859-7:
AddDefaultCharset ISO-8859-7

What should I do??? Can you geive me a hint?

Thanks in advance.

Average of ratings: -
In reply to Maria Tsiakmaki

Re: Text encoding for spanish & italian

by Penghui Liang -

I have the same problem, but I change the charset code then it works. Here is my code. Maybe, you can try to change the "charset" . Try it!

$meta = '<meta http-equiv="content-type" content="text/html; charset='. $encoding .'" />'. "\n". $meta ."\n";
    if (!$usexml) {
        @header('Content-type: text/html; charset=gb2312')
    }