I just made some changes to the admin site to handle Chinese character set. 
Now the site can properly handle Chinese GB input and display. There are 
some points I'd like to share with the development team to improve the code 
for multi-byte code support. This is actually very easy and not much change 
needed for coding. I only made the following two changes:

1. Go to Host Admin -> Select Admin site -> Edit root page: Admin Root -> 
Page elements code-global -> Modify
All occurrence of PHP function htmlentities() was changed to 
htmlspecialchars(). The later is a better version of the function doing the 
same job and not restricted to particular character set.

2. Go to Host Admin -> Select Admin site -> Edit root page: Admin Root -> 
SubPage topic -> subpage article -> Modify
Replace all &(article.title); to <? echo $article->title; ?>
Do the same for article.abstract, article.content, article.name, 
&(title),&(abstract),&(content),&(name)
The Midgard manual acclaims that &(string) does the same thing as <? echo 
string ?>. But apparently it is not for at least Chinese character set. I 
think the underlying code needs to be changed to let this syntax honestly 
comply its PHP counterpart.

With above simple changes, Chinese character set is properly handled for 
content diplaying and input. It is actually very simple. I recommend that 
the development could think about this and made a little change in the code. 
(The same code works for any other character set too.) I would like to help 
if needed.

Thank you all very much for the great product you dilivered to the 
community!

Jian
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to