|
|
|
Re: 2.7.2 to 2.7.6, chinese to utf-8 [message #34838 is a reply to message #34826] |
Mon, 20 November 2006 19:12 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Does the Content-Type meta tag show the correct charset? Also check to see what headers your PHP is sending, perhaps it is sending a header telling the browser that the content is UTF-8.
FUDforum Core Developer
|
|
|
|
|
Re: 2.7.2 to 2.7.6, chinese to utf-8 [message #34849 is a reply to message #34846] |
Mon, 20 November 2006 20:35 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
if the header says utf-8 (as you've pasted) that would explain why the forum is in UTF-8. Did you rebuild the theme after making the change?
FUDforum Core Developer
|
|
|
|
|
|
|
|
Re: 2.7.2 to 2.7.6, chinese to utf-8 [message #34896 is a reply to message #34879] |
Wed, 22 November 2006 15:21 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I presume you are referring to the text itself, that's UTF8 because the translation is UTF-8. To put it back to gb2312 you need to use iconv to convert the msg file contents from utf-8 to gb2312.
FUDforum Core Developer
|
|
|
Re: 2.7.2 to 2.7.6, chinese to utf-8 [message #34903 is a reply to message #34896] |
Wed, 22 November 2006 18:11 |
redhat71
Messages: 32 Registered: February 2003
Karma: 0
|
Member |
|
|
Ilia wrote on Wed, 22 November 2006 23:21 | I presume you are referring to the text itself, that's UTF8 because the translation is UTF-8. To put it back to gb2312 you need to use iconv to convert the msg file contents from utf-8 to gb2312.
|
no, i mean the actual content
anyway, it doesn't matter, i checked my original ones
then modified both file accordingly and rebuilt again, same as above
changing the file "charset" from utf-8 to gb2312 and rebuilding the theme results in
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
changing the file "locale" from zh_CN.UTF-8 to zh_CN and rebuilding the theme does NOT seem to make any difference
-
Attachment: 1.png
(Size: 16.73KB, Downloaded 1757 times)
[Updated on: Wed, 22 November 2006 18:12] Report message to a moderator
|
|
|
|
|
Re: 2.7.2 to 2.7.6, chinese to utf-8 [message #34927 is a reply to message #34921] |
Fri, 24 November 2006 16:10 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
locale and charset are two different things. Locale is only used for dates, while charset is used for the rest of the forum's text.
FUDforum Core Developer
|
|
|
|
|
|
Re: 2.7.2 to 2.7.6, chinese to utf-8 [message #34962 is a reply to message #34947] |
Mon, 27 November 2006 23:59 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The rebuild process rebuilds all the template files, which also means that the headers such as meta tags are reset.
FUDforum Core Developer
|
|
|
|
Re: 2.7.2 to 2.7.6, chinese to utf-8 [message #34970 is a reply to message #34966] |
Tue, 28 November 2006 15:56 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
As far as I can tell here is the problem. Previously your forum was using gb2312 which means messages were written to disk & db using this encoding. The you upgraded to a version where the chinese translation uses utf-8 (meaning that the forum text (not messages) were not in utf-8 and any NEW messages would be posted in utf-8. This means that no matter what you would do, some messages would not show up properly.
The best solution which I had mentioned previously would be to convert the text inside the "msg" file to bg2312, which would allow you to use the forum with the gb2312 character set and have the old messages display properly.
FUDforum Core Developer
|
|
|
|
Re: 2.7.2 to 2.7.6, chinese to utf-8 [message #34978 is a reply to message #34973] |
Wed, 29 November 2006 15:14 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The theme text comes from the msg file, which is utf-8 in the new version. If you want to change it to gb2312 you can convert the text in it using iconv()
FUDforum Core Developer
|
|
|