Ok, I looked at the page, and the problem is actually relatively simple and
Basically, IIS itself is not Unicode enabled, so it needs a code page to do
its work. This is set via one of four ways:
1) The default system code page of the server on which IIS is running.
2) #1 can be overridden by the metabase setting of the ASPCodePage property.
3) #2 can be overridden per page at compile time via the @CODEPAGE
4) #3 can be overriden at runtime via the Session.CodePage proprty, assuming
that sessions are not disabled.
In your case, you are relying on #1/#2 because you are not setting either
prop at the page level. To fix, you need to at least set @CODEPAGE=65001 at
the top of your ASP page (65001 is UTF-8).
The reason it works with 1256 is that is the default system codepage of the
server, so the conversion was happening for you properly. Any time the code
page is wrong, you will get lots of question marks instead of valid
Trigeminal Software, Inc.
a new book on internationalization in VB at
----- Original Message -----
From: "Hamed abangar" <firstname.lastname@example.org>
To: "Michael (michka) Kaplan" <email@example.com>
Sent: Tuesday, October 24, 2000 12:10 AM
Subject: Re: Help
> Dear Michael
> I send you a demo of this problem with this mail.The default.htm has a
> simple search form.
> It passes a farsi string to a ASP file named result.asp.This file was
> generated by some wizards
> in Microsoft FrontPage 2000 and works correctly,but if you change the
> charachterset from
> 1256 to UTF-8 the result is not true.At last I cann't understand your mind
> about local web server.My local
> system (at home) is windows 2000 profesional with IIS 5.0.
> with more thanks
> Hamed Abangar
> ----- Original Message -----
> From: "Michael (michka) Kaplan" <firstname.lastname@example.org>
> To: "Unicode List" <email@example.com>; "Hamed abangar"
> Sent: Monday, October 23, 2000 8:25 PM
> Subject: Re: Help
> > Can you give some more detail, such as where you are trying to do this
> > (i.e. from ASP, JSP, etc.) and maybe some of the script you are using?
> > the default system locale of the web server Arabic?
> > michka
> > a new book on internationalization in VB at
> > http://www.i18nWithVB.com/
> > ----- Original Message -----
> > From: "Magda Danish (Unicode)" <firstname.lastname@example.org>
> > To: "Unicode List" <email@example.com>
> > Sent: Monday, October 23, 2000 9:20 AM
> > Subject: FW: Help
> > >
> > > -----Original Message-----
> > > From: Hamed abangar [mailto:firstname.lastname@example.org]
> > > Sent: Monday, October 23, 2000 9:20 PM
> > > To: email@example.com
> > > Cc: firstname.lastname@example.org
> > > Subject: Help
> > >
> > >
> > > Dear members
> > >
> > > I have some problem with Microsoft SQL Server 7 & Microsoft Access
> > > want to make a search form in FARSI language.
> > > When I make my web page in 1256 charachter set and search a farsi
> > > ,the search works correctly and it's result is true.
> > > But when I marked it as UTF-8 (Multilanguage) and search a farsi
> > the
> > > search dose not work correctly and some times it's result is a set of
> > > question mark(????????.....)
> > >
This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:21:14 EDT