Advertisement:

Author Topic: some problems with chinese forum  (Read 18396 times)

Offline CapriSkye

  • Full Member
  • ***
  • Posts: 574
    • Open
some problems with chinese forum
« on: October 15, 2004, 01:16:13 AM »
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
« Last Edit: October 15, 2004, 01:22:31 AM by CapriSkye »

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: some problems with chinese forum
« Reply #1 on: October 15, 2004, 01:53:12 AM »
You may need to use the Chinese character set for these things to work....

-[Unknown]

Offline CapriSkye

  • Full Member
  • ***
  • Posts: 574
    • Open
Re: some problems with chinese forum
« Reply #2 on: October 15, 2004, 02:03:50 AM »
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.

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: some problems with chinese forum
« Reply #3 on: October 15, 2004, 02:11:03 AM »
Hmm, half the pages I go to on your forum give me template parse errors :P.

-[Unknown]

Offline CapriSkye

  • Full Member
  • ***
  • Posts: 574
    • Open
Re: some problems with chinese forum
« Reply #4 on: October 15, 2004, 10:17:45 AM »
okay i have to change something in error file, that's the only one i could find
« Last Edit: October 15, 2004, 10:38:39 AM by CapriSkye »

Offline CapriSkye

  • Full Member
  • ***
  • Posts: 574
    • Open
Re: some problems with chinese forum
« Reply #5 on: October 18, 2004, 10:34:46 AM »
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
« Last Edit: October 18, 2004, 12:55:33 PM by CapriSkye »

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: some problems with chinese forum
« Reply #6 on: November 01, 2004, 05:25:09 PM »
Is   not a defined entity in Big-5?

-[Unknown]

Offline CapriSkye

  • Full Member
  • ***
  • Posts: 574
    • Open
Re: some problems with chinese forum
« Reply #7 on: November 01, 2004, 07:26:48 PM »
that i have no idea...

Offline Alrescha

  • Newbie
  • *
  • Posts: 6
Re: some problems with chinese forum
« Reply #8 on: November 10, 2004, 07:26:36 AM »
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?

Offline CapriSkye

  • Full Member
  • ***
  • Posts: 574
    • Open
Re: some problems with chinese forum
« Reply #9 on: December 07, 2004, 11:19:37 PM »
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

Offline CapriSkye

  • Full Member
  • ***
  • Posts: 574
    • Open
Re: some problems with chinese forum
« Reply #10 on: December 08, 2004, 12:02:39 AM »
i have this line
Code: [Select]
$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

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: some problems with chinese forum
« Reply #11 on: December 08, 2004, 12:56:33 AM »
Replace \s with just a space.

-[Unknown]

Offline CapriSkye

  • Full Member
  • ***
  • Posts: 574
    • Open
Re: some problems with chinese forum
« Reply #12 on: December 08, 2004, 12:59:49 AM »
lol damn unknown, thanks for the help.
i think im falling in love with regex....