Re: aspx page encoding

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: z f (zigi_at_info-scope.co.il)
Date: 12/26/04


Date: Sun, 26 Dec 2004 21:44:05 +0200

anyway i found it and it worked, thanXXXX!!!!!

"Mikhail Arkhipov (Microsoft)" <mikhaila@online.microsoft.com> wrote in
message news:BDF44738.9E95%mikhaila@online.microsoft.com...
> ASP.NET runtime does not use any META information in the file. It uses
> fileEncoding attribute that you can specify in web.config file. Have a
look
> here
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
> vbtskeditingwebconfigfileforwebformsglobalization.asp
>
> If fileEncoding attribute is not specified, ASP.NET runtime reads file in
> default OS codepage unless the file has Unicode or UTF-8 signature.
>
> You can work around VS limitation of lack of default encoding by resaving
> new file templates in Unicode or UTF-8 with signature. Then VS will
respect
> file signatures no matter what META element might specify.
>
> Thanks
>
> Mikhail Arkhipov (Microsoft)
> -- This post is provided 'AS IS' with no warranties and confers no rights
>
> On 12/26/04 10:30, in article #WR5Bk36EHA.2700@TK2MSFTNGP14.phx.gbl, "z f"
> <zigi@info-scope.co.il> wrote:
>
> > Hi,
> >
> > i run a web application in a commercial hosting.
> > my web app need encoding of hebrew, but the default encoding on the
hosting
> > (win2003) is english - westren-european, and my pages are being read as
> > western european encoding even if i add a content-encoding=windows-1255
> > which should work.
> > the only solution i found is to save the pages as unicode, but this is
> > annoying, because there is no option to set the default page encoding in
> > visual studio 2003, so i have to change it for each page, and sometimes
it
> > changes back.
> >
> > is there an option that the pages will be read by IIS/asp.net using a
> > specific encoding in the configuration of the application.
> > the problem is that when the pages are saved as ascii and using a
> > windows-1255 encoding as on the development computer, it does not
display
> > correctly.
> >
> > please advise.
> > TIA, z.
> >
> >
>
>



Relevant Pages

  • Re: aspx page encoding
    ... > ASP.NET runtime does not use any META information in the file. ... > fileEncoding attribute that you can specify in web.config file. ... > default OS codepage unless the file has Unicode or UTF-8 signature. ... > You can work around VS limitation of lack of default encoding by resaving ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: aspx page encoding
    ... ASP.NET runtime does not use any META information in the file. ... fileEncoding attribute that you can specify in web.config file. ... You can work around VS limitation of lack of default encoding by resaving ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: [Patch] Support UTF-8 scripts
    ... For a script, the shell does not care about the encoding ... the interpreter *does* care about the encoding. ... UTF-8, meaning that non-ASCII can be used in string literals, ... > signature, so introducing a signature for UTF-8 does not win anything. ...
    (Linux-Kernel)
  • Re: Creating ANSI text files with international characters
    ... File->Advanced Save Options dialog, it said Western European codepage 1252, ... that mean the encoding UTF-8 IS the codepage 65001!?!? ... Unicode (UTF-8 with signature) codepage 65001, ...
    (microsoft.public.dotnet.framework)
  • Re: Request.QueryString() is stripping out French characters
    ... Click this and select "Save With Encoding". ... The files must be stored as UTF-8 ... > foreign language character sets. ... encoding if no fileEncoding is specified, ...
    (microsoft.public.dotnet.framework.aspnet)