FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34795&th=7347#msg_34795
any suggestion? thanks]]>redhat712006-11-17T20:17:36-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34821&th=7347#msg_34821
Ilia2006-11-19T16:40:53-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34826&th=7347#msg_34826
]]>redhat712006-11-19T18:27:23-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34838&th=7347#msg_34838
Ilia2006-11-20T19:12:11-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34846&th=7347#msg_34846
redhat712006-11-20T20:20:46-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34847&th=7347#msg_34847
Ilia wrote on Tue, 21 November 2006 03:12
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.
i don't know how to check that
but if i understand you right, in that case everything should be fine if i manually change the browser to gb2312
that's not the problem, the problem is the theme of the forum is actually in utf-8 although i've set it to GB2312 and rebuilt it
]]>redhat712006-11-20T20:29:34-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34849&th=7347#msg_34849
Ilia2006-11-20T20:35:12-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34850&th=7347#msg_34850
if there's an easy way to convert everything to utf-8, it's the same to me
any help is appreciated, thanks]]>redhat712006-11-20T20:35:30-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34851&th=7347#msg_34851
Ilia wrote on Tue, 21 November 2006 04:35
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?
YES, i rebuilt it]]>redhat712006-11-20T20:36:25-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34872&th=7347#msg_34872
Go into the theme/default/i18n/[language] directory and update the "charset" file within with the charset you want to use. Then rebuild the theme.]]>Ilia2006-11-21T15:20:39-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34878&th=7347#msg_34878
MY_FOLDER_NAME/thm/default/i18n/chinese/
after i did the change and rebuilt, the charset in META is gb2312 now
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
however, the theme is still utf-8, it's still a mix up]]>redhat712006-11-21T17:06:23-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34879&th=7347#msg_34879
the content of the file is zh_CN.UTF-8, tried to change that to GB2312 as well and rebuilt again, still the same]]>redhat712006-11-21T17:12:55-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34896&th=7347#msg_34896
Ilia2006-11-22T15:21:31-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34903&th=7347#msg_34903
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]]>redhat712006-11-22T18:11:42-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34918&th=7347#msg_34918
Ilia2006-11-23T14:25:31-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34921&th=7347#msg_34921
Ilia wrote on Thu, 23 November 2006 22:25
The message content is stored inside msg files it cannot be easily converted to another language type.
it's not the encoding, see the screenshot above]]>redhat712006-11-23T14:56:46-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34927&th=7347#msg_34927
Ilia2006-11-24T16:10:02-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34931&th=7347#msg_34931
redhat712006-11-24T18:31:21-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34945&th=7347#msg_34945
Ilia2006-11-26T16:19:41-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34947&th=7347#msg_34947
Ilia wrote on Mon, 27 November 2006 00:19
if the meta tag is set then the forum does what's needed.
you mean the "rebuild" process only changes the meta tag? then, do i have to find out all the files of the theme and convert them from utf-8 to gb2312 manually?]]>redhat712006-11-26T18:14:02-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34962&th=7347#msg_34962
Ilia2006-11-27T23:59:43-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34966&th=7347#msg_34966
redhat712006-11-28T01:13:10-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34970&th=7347#msg_34970
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.]]>Ilia2006-11-28T15:56:48-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34973&th=7347#msg_34973
before upgrade:
the theme is gb2312, the files of the theme are gb2312
after upgrade:
the theme is utf-8, all the files of the theme are utf-8
changing the charset to gb2312 and rebuilding it only changes the Content-Type meta tag, the files are STILL utf-8
i thought the rebuilding process should rebuild all the files to gb2312 as well, did i misunderstand?]]>redhat712006-11-28T22:26:49-00:00Re: 2.7.2 to 2.7.6, chinese to utf-8
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34978&th=7347#msg_34978
Ilia2006-11-29T15:14:55-00:00