Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 05:17 pm EDT

Geeklog Forums

东方


Status: offline

barrywong

Forum User
Regular Poster
Registered: 04/12/02
Posts: 95
Please ignore the title, I am trying to enter mandarin on the Title to see if it works on geeklog as suggested by Dirk. 东方人的起源 东方人的起源 东方人的起源 Can the moderator please help me approve this to see if the title stays as mandarin or changes to some numeric digits. I will be be able to tell as preview will show the title in it's correct form. After it is approved, the problem occurs. Thanks
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Hmm, the title looked fine (i.e. displayed as chinese characters) in the Admin's story editor. I did then change the topic to "help" and saved it - and that's what we got ... It looks like we may be doing one htmlspecialchars() call too many somewhere. bye, Dirk
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Btw, the title in the comment above displayed as chinese characters because I changed the 东方 etc. back to 东方... bye, Dirk
 Quote

Status: offline

barrywong

Forum User
Regular Poster
Registered: 04/12/02
Posts: 95
Hi Dirk Thanks for responding. I have now found the following 2 problems with inputing mandarin as follows: 1. When I enter login as anonymous to post a note in mandarin under contribute, the Title field stays intact as mandarin, but all else changes to "东方人的起源, " After that, when I log in as admin to approve this entry (without editing it), the title shows up well enough but the body of the text stays garbled. If I were to edit the article, both title and the body text become garbled. Could it be that under submit.php, the htmlspecialchars() call might be acting up in the body text area. 2. If I were to enter an article as admin, the title get garbled but the body looks okay. There doesn't seem to be a situation for me to amend the title to rectify the title to have mandarin show up. I wrote to Euan as suggested and am waiting for his inputs. Your assistance would greatly be appreciated. If you have a fix for this htmlspecialchars() call problem, can you please email me with it. Thank you so much. PS: Interestingly, if I allow for language option, entry in chinese isn't a problem. Problem comes about when I switch back to english. Then all chinese become garbled. Any comments would be greatly appreciated. Thanks again.
 Quote

JohnFractal

Anonymous
²âÊÔ
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany

I'm really at a loss here, since I'm not an expert in character sets at all. So any expertise on this is welcome ...

AFAICT, everything works fine when the page is using the proper character set for the language and characters you want to enter, i.e. when you want to use chinese characters, you would have to serve the page in Big5 or GB2312 encoding.

When you switch to the english language file, the character set also switches to iso-8859-1 and that causes the problems we see.

In other words - I don't think there's anything that Geeklog could do here. If you want to use chinese characters, you will have to use the chinese character set (and not iso-8859-1).

As I said, I could be wrong. So anyone with more experience in foreign (especially Asian) languages, please feel free to correct me ...

bye, Dirk

 Quote

japanese

Anonymous
日本語 this is Japanese
简体字汉语 this is simplified Chinese
한굴 this is Korean

are they displayed correctly ?

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by japanese: are they displayed correctly ?

I can't read any of this, but they display fine for me (i.e. as Asian characters). I've switched my language file to "English (UTF-8)", though.

bye, Dirk
 Quote

All times are EDT. The time is now 05:17 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content