News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

some problems with chinese forum

Started by CapriSkye, October 15, 2004, 01:16:13 AM

Previous topic - Next topic

CapriSkye

upgrading to rc2 went smooth for my chinese forum, but there are some problems....
like what i mentioned in other post, the characters 許, 功, 蓋 are causing problems, it's always been, but this time it's different. for example the search function, when i search 許, 功, 蓋 here, it will find the characters appeared in this forum, but for mine it doesn't even though i have those characters in my forum. also i cannot register names with chinese in rc2, it just refresh the registration page with no error message, it worked in rc1 though.

also another problem, i have quick reply function turned on, and when i quote the post with chinese characters in it, it won't show the characters properly, it doesn't show any chinese characters really.
if i was to modify the source code for quick reply, where would i go to find it?

this is weird....now quote works for chinese character in quick reply. maybe i tried that in rc1 and it didn't work, but it works now. i guess i need some sleep...

i hope the developers will take notes of those problems, other than that it worked great for chinese forum! and great work on the new version. thanks

[Unknown]

You may need to use the Chinese character set for these things to work....

-[Unknown]

CapriSkye

what do you mean? my forum is using chinese language pack, i just don't understand how those characters work here but not in my forum, we both have the same forum version.

[Unknown]

Hmm, half the pages I go to on your forum give me template parse errors :P.

-[Unknown]

CapriSkye

#4
okay i have to change something in error file, that's the only one i could find

CapriSkye

#5
here's another problem with my forum, which i tested it here and it's fine, so im assume it has something to do with chinese encoding. when i post something with extra spaces in the message, like doing this
a           b              c             d
they show up okay when posting, but after click modify and post again, it replace the spaces with  . it's same with chinese text and english text. maybe somebody knows which file to edit if i was to find a way to fix this? maybe in post.php? thanks

[Unknown]

Is   not a defined entity in Big-5?

-[Unknown]

CapriSkye


Alrescha

I would guess the search problem is due to the fact that the language pack uses the Big-5 encoding. When I downloaded the language pack, I modified it to use utf-8 (preferred and my recommendation). But this is only a guess.

As for  , I think yes it is a defined entity. After all, it's an HTML entity and has nothing to do with the encodings. That's just something we have to live with, I guess.

Besides, why would you want to use spaces?

CapriSkye

i think   is not a defined entity in big5, so the only way to fix this is to use utf-8? i think it would be a pain to convert my forum to utf-8 now...:(
i've test this in other forum products, and they just eliminate any extra spaces in final post, if more than two spaces are between each chinese characters. how do i go about doing that in smf? thanks

CapriSkye

i have this line

$message = preg_replace("/[\s]+/","$1 ", $message);

in preparsecode, which removes extra spaces, but it also removes line break. any idea so the above expression doesn't apply to line break? thanks

[Unknown]

Replace \s with just a space.

-[Unknown]

CapriSkye

lol damn unknown, thanks for the help.
i think im falling in love with regex....

Advertisement: