By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,652 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,652 IT Pros & Developers. It's quick & easy.

Dynamically Change Codepage?

P: n/a
Dear all,

I am now creating an CMS which support 3 languages (English, Traditional
Chinese and Simplified Chinese). The user can change their languages
dynamically; however, I would like to know how can I change the codepage (<%
code=936%>) dynamically? THank you for all of your help.

Alex Yung
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
You could put a dropdown at the top of the page like so.

<%
Select Case Request.Querystring("l")
Case "b"
Session.CodePage = 936 'or whatever traditional Chinese is
Case "c"
Session.CodePage = 932 'or whatever simplified Chinese is
Case Else
Session.CodePage = 1252
End Select
%>

<select name="l"
onchange="location.href='<%=Request.ServerVariable s("PATH_INFO")%>?l='+this.value;">
<option value="a">English</option>
<option value="b">Traditional Chinse</option>
<option value="c">Simplified Chinese</option>
</select>

Ray at work

"Alex" <al**@f-technology.com> wrote in message
news:u1*************@TK2MSFTNGP10.phx.gbl...
Dear all,

I am now creating an CMS which support 3 languages (English, Traditional
Chinese and Simplified Chinese). The user can change their languages
dynamically; however, I would like to know how can I change the codepage
(<%
code=936%>) dynamically? THank you for all of your help.

Alex Yung

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.