Question For ASP veterans

H

hamiiied

Hi All ...
How can you set asp response cookies to unicode language like chinase,
arabic, etc...
For your information; response cookies by default is english, if you
use it by default it will print any unicode letters to ?
quationmark ...

Waiting Your Solutions ............
 
A

Anthony Jones

Hi All ...
How can you set asp response cookies to unicode language like chinase,
arabic, etc...
For your information; response cookies by default is english, if you
use it by default it will print any unicode letters to ?
quationmark ...

Waiting Your Solutions ............


<%@codepage=65001%>
<%
Response.CharSet = "UTF-8"



Save your page in UTF-8 encoding.

You need to be sure that any page consuming the cookie is likewise set to
the 65001 codepage.
 
H

hamiiied

<%@codepage=65001%>
<%
Response.CharSet = "UTF-8"

Save your page in UTF-8 encoding.

You need to be sure that any page consuming the cookie is likewise set to
the 65001 codepage.

Not worked fine for arabic "1256" ?
 
H

hamiiied

I'm not sure whether that is a statement or a question. UTF-8 works for any
characters from any language.

Thank you for your interaction with me mr anthony ....
the problem still not solved,
this my script:

<%@language="vbscript" codepage="65001"%>
<%
response.charset = "UTF-8"

response.cookies("hamied")="hamied "
response.write request.cookies("hamied")

%>

it return:
"hamied" without " " !!!! (i don't know if arabic characters will
appear on your computer properly.)

that is mean, it return english letters & miss arabic one !!!
any idea?
 
A

Anthony Jones

Thank you for your interaction with me mr anthony ....
the problem still not solved,
this my script:

<%@language="vbscript" codepage="65001"%>
<%
response.charset = "UTF-8"

response.cookies("hamied")="hamied "
response.write request.cookies("hamied")

%>

it return:
"hamied" without " " !!!! (i don't know if arabic characters will
appear on your computer properly.)

that is mean, it return english letters & miss arabic one !!!
any idea?


Which version of IIS are you using. I've just tested on IIS5 and it doesn't
work but it does on IIS5.1 .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top