This topic is locked

multi-language

10/22/2003 12:51:58 PM
ASPRunnerPro General questions
author

Dear all,
i'm having a trial run on Asprunner, but when I try to use it with multi-language (e.g. Chinese) it seems having problem including listing the records, updating, inserting.. .any idea ?
thanks
Wing

Sergey Kornilov admin 10/22/2003

Wing,
could you describe your problem with more details?
Best regards,

Sergey Kornilov

wingchan 10/22/2003

Thanks for your quick respond.
Actually, I'm using a SQL 2000 server running on a Windows 2000 (traditional chinese) machine and the SQL 2000 server supporting chinese character fine.
When I tried to use the AspRunner to generate those pages, it seems when the records are being browsing (e.g. xxx_list.asp ) if there are any chinese characters on that page, it printed "Writepasigated(xx,xx)" instead of "[1,2,3,4,5]" at the end of the page, and the rest of the records can't be displayed.
Besides, when I try to use the "Add new" feature and typing in Chinese character in the text box, when I retrieve the record it give me a strange characters, and I double check with the SQL server, it shows me that strange characters has been inserted. So I guess it should be something happen on the string conversion.. please help.
thanks.
-Wing

wingchan 10/23/2003

I found the error is come from NULL value instead of chinese characters.. but I found when I type in any chinese characters it will become "?????", any idea ?

Sergey Kornilov admin 10/23/2003

Wing,
this sounds strange. ASP code is Unicode-enabled by default and should be able to handle Chinese characters.
Try to put this line of code in the begining of ASP code in ..._list.asp file.
Session.LCID = 2052
Other values that you can try are:
3076 Chinese(Hong Kong)

2052 Chinese(PRC)

4100 Chinese(Singapore)

1028 Chinese(Taiwan)
I hope this helps.
Best regards,

Sergey Kornilov

wingchan 11/4/2003

Sergey Kornilov,
thanks, but I don't where should I put the session.lcid within the _list.asp ?!
btw, when I tried to add the server.htmlencode before the display the string, it seems the chinese characters work okay on the _list.asp but when I tried to edit the page, for those whose contain chinese doesn't work ... ! please help, thanks.
Besides, I found out another problem dunno whether is related to the chinese but when i set "Records Per Page: = 10" and press "10" on the bottom of the screen .. it returns " First : Previous [ -192 -191 -190 -189 -188 -187 -186 -185 -184 -183 ] Next : Last " instead of [11-12....] , please help .
many thanks.
-Wing

Sergey Kornilov admin 11/5/2003

Wing,
just put it before after include statements in the very begininnig of this file.
Best regards,

Sergey Kornilov

J
Joseph Zuanger 3/4/2007

Wing,

just put it before after include statements in the very begininnig of this file.
Best regards,

Sergey Kornilov


Admin,
Is this problem resolved?
The manual in the page handles Chinese charaters well, but any character in the database will show as ???? in the list and view pages. I tried the your recommendations, but with no success. Let me know if there is solution for this problem.
I know the SQL-2000 handles characters well, I can view the content no problem in SQL-2000.
Thanks!

Joe