Can't display Chinese Big-5 text at anycontent.php Can't display Chinese Big-5 text at anycontent.php
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Can't display Chinese Big-5 text at anycontent.php

Started by Jr. tristan, August 10, 2006, 06:05:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jr. tristan

First of all, I must say I do not have any knowledge about php editing.

My default setting of encoding is UTF-8.
After I have uploaded my anycontent.php file and then view my gallery, the following code:

<p align="left">Hello</p>
displays with no problem.

However,
<p align="right"><font face="@細明體"> 歡迎你</font></p>
could not be displayed. ???

I guess it might be a little bit out of the CPG's topic.
But, Is my code wrong? Or any other files that I have to further edit?

Please assist.

Joachim Müller

I doubt that there actually is a font named "@細明體" - it probably has a latin name (although I could be wrong on this, as I'm not an expert on asian languages). However, if the content you want to see displayed is "歡迎你" (whatever this means), then just make sure that your anycontent file is stored as UTF-8 (unicode) file, not as ANSI. If your content can be displayed using unicode (and I guess it can), then you should be fine.
You will of course need an editor that is capable to edit plain-text files in unicode format.
You have to understand that a font family definition doesn't define the encoding of a file.

Joachim

P.S. There's a chinese sub-board where you could ask your question as well.

Jr. tristan

Just use my Notepad and I did what you have told me to...

It's all right now... Thank you so much, GauGau  ;)