473,378 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Question For ASP veterans

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

Jul 29 '07 #1
6 1764
<ha******@gmail.comwrote in message
news:11**********************@z28g2000prd.googlegr oups.com...
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.


--
Anthony Jones - MVP ASP/ASP.NET
Jul 29 '07 #2
On Jul 29, 7:33 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
<hamii...@gmail.comwrote in message

news:11**********************@z28g2000prd.googlegr oups.com...
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.

--
Anthony Jones - MVP ASP/ASP.NET
Not worked fine for arabic "1256" ?

Jul 30 '07 #3
<ha******@gmail.comwrote in message
news:11*********************@g12g2000prg.googlegro ups.com...
On Jul 29, 7:33 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
<hamii...@gmail.comwrote in message

news:11**********************@z28g2000prd.googlegr oups.com...
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.

--
Anthony Jones - MVP ASP/ASP.NET

Not worked fine for arabic "1256" ?
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
Jul 30 '07 #4
On Jul 30, 11:44 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
<hamii...@gmail.comwrote in message

news:11*********************@g12g2000prg.googlegro ups.com...


On Jul 29, 7:33 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
<hamii...@gmail.comwrote in message
>news:11**********************@z28g2000prd.googleg roups.com...
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.
--
Anthony Jones - MVP ASP/ASP.NET
Not worked fine for arabic "1256" ?

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- Hide quoted text -

- Show quoted text -
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?

Jul 31 '07 #5
<ha******@gmail.comwrote in message
news:11**********************@j4g2000prf.googlegro ups.com...
On Jul 30, 11:44 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
<hamii...@gmail.comwrote in message

news:11*********************@g12g2000prg.googlegro ups.com...


On Jul 29, 7:33 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
<hamii...@gmail.comwrote in message
news:11**********************@z28g2000prd.googlegr oups.com...
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.
--
Anthony Jones - MVP ASP/ASP.NET
Not worked fine for arabic "1256" ?
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- Hide quoted text -

- Show quoted text -

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 .

--
Anthony Jones - MVP ASP/ASP.NET
Jul 31 '07 #6
On Jul 31, 4:56 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
<hamii...@gmail.comwrote in message

news:11**********************@j4g2000prf.googlegro ups.com...


On Jul 30, 11:44 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
<hamii...@gmail.comwrote in message
>news:11*********************@g12g2000prg.googlegr oups.com...
On Jul 29, 7:33 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
<hamii...@gmail.comwrote in message
>news:11**********************@z28g2000prd.googleg roups.com...
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.
--
Anthony Jones - MVP ASP/ASP.NET
Not worked fine for arabic "1256" ?
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- Hide quoted text -
- Show quoted text -
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 .

--
Anthony Jones - MVP ASP/ASP.NET- Hide quoted text -

- Show quoted text -
IIS 5

Jul 31 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Stevey | last post by:
I have the following XML file... <?xml version="1.0"?> <animals> <animal> <name>Tiger</name> <questions> <question index="0">true</question> <question index="1">true</question> </questions>
7
by: nospam | last post by:
Ok, 3rd or is it the 4th time I have asked this question on Partial Types, so, since it seems to me that Partial Types is still in the design or development stages at Microsoft, I am going to ask...
3
by: Ekqvist Marko | last post by:
Hi, I have one Access database table including questions and answers. Now I need to give answer id automatically to questionID column. But I don't know how it is best (fastest) to do? table...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
10
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server...
5
by: Phillip N Rounds | last post by:
I have a webform ( ASP.NET 1.1, CodeBehinde = C#). The user selects an address item from a dropdown list box. The details of the address then populate appropriate text boxes. Each textbox has an...
53
by: Jeff | last post by:
In the function below, can size ever be 0 (zero)? char *clc_strdup(const char * CLC_RESTRICT s) { size_t size; char *p; clc_assert_not_null(clc_strdup, s); size = strlen(s) + 1;
4
by: HARDCORECODER | last post by:
ok I want to extract the first 4 bits of a 32 bit interger. The SIZE doesn't really matter. 8,16, 0r 32. I want the first 4 bits.....bit 0,1,2 and,3. I want to exract these and place into another...
10
by: Victor Bazarov | last post by:
Just asking...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.