Groups | Blog | Home
all groups > inetserver asp general > july 2007 >

inetserver asp general : Question For ASP veterans


hamiiied NO[at]SPAM gmail.com
7/29/2007 8:36:53 AM
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 ............
Anthony Jones
7/29/2007 5:33:47 PM
[quoted text, click to view]


<%@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.




--
Anthony Jones - MVP ASP/ASP.NET

hamiiied NO[at]SPAM gmail.com
7/30/2007 1:18:38 AM
[quoted text, click to view]

Not worked fine for arabic "1256" ?
Anthony Jones
7/30/2007 9:44:45 PM
[quoted text, click to view]

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

--
Anthony Jones - MVP ASP/ASP.NET

hamiiied NO[at]SPAM gmail.com
7/31/2007 6:14:35 AM
[quoted text, click to view]

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?
hamiiied NO[at]SPAM gmail.com
7/31/2007 7:44:56 AM
[quoted text, click to view]

IIS 5
Anthony Jones
7/31/2007 2:56:55 PM
[quoted text, click to view]


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

--
Anthony Jones - MVP ASP/ASP.NET

AddThis Social Bookmark Button