I have classic asp files (IIS6) that need to be saved in UTF-8 format. I
save a file with Notepad using SAVE-AS & UTF-8 format. If I reopen the file
using Notepad and bring up the save-as dialog is defaults to UTF-8, which is
good. But after the file is modified and saved using Visual Interdev the
format switches back to ANSI format, which causes some international
characters to display as little boxes in the browser. I found one comment on
the internet about making sure the Meta tag with Charset=UTF-8 must be in the
file to instruct interdev to use the UTF-8 format when saving. This seems to
work on some .asp files but not all.
Any suggestions would be appreciated.
Thank You
--
Robert Hill
Re: Saving Classic ASP in UTF-8 Format
am 03.08.2007 16:26:50 von exjxw.hannivoort
=?Utf-8?B?Um9iZXJ0SGlsbEVEUw==?= wrote on 03 aug 2007 in
microsoft.public.inetserver.asp.general:
> I have classic asp files (IIS6) that need to be saved in UTF-8 format.
> I save a file with Notepad using SAVE-AS & UTF-8 format. If I reopen
> the file using Notepad and bring up the save-as dialog is defaults to
> UTF-8, which is good. But after the file is modified and saved using
> Visual Interdev the format switches back to ANSI format, which causes
> some international characters to display as little boxes in the
> browser.
>
> Any suggestions would be appreciated.
Don't use Visual Interdev, I don't.
> I found one comment on the internet about making sure the
> Meta tag with Charset=UTF-8 must be in the file to instruct interdev
> to use the UTF-8 format when saving. This seems to work on some .asp
> files but not all.
I would not know about this.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Re: Saving Classic ASP in UTF-8 Format
am 03.08.2007 17:16:39 von Anthony Jones
"RobertHillEDS" wrote in message
news:E61E658C-0A47-43E2-8C30-69B4A4185C2A@microsoft.com...
> I have classic asp files (IIS6) that need to be saved in UTF-8 format. I
> save a file with Notepad using SAVE-AS & UTF-8 format. If I reopen the
file
> using Notepad and bring up the save-as dialog is defaults to UTF-8, which
is
> good. But after the file is modified and saved using Visual Interdev the
> format switches back to ANSI format, which causes some international
> characters to display as little boxes in the browser. I found one comment
on
> the internet about making sure the Meta tag with Charset=UTF-8 must be in
the
> file to instruct interdev to use the UTF-8 format when saving. This seems
to
> work on some .asp files but not all.
>
> Any suggestions would be appreciated.
>
You should also have:-
<%@ codepage=65001 %>
at the top of your page.
--
Anthony Jones - MVP ASP/ASP.NET
Re: Saving Classic ASP in UTF-8 Format
am 03.08.2007 20:58:02 von rwhill
--
Robert Hill
"Anthony Jones" wrote:
> "RobertHillEDS" wrote in message
> news:E61E658C-0A47-43E2-8C30-69B4A4185C2A@microsoft.com...
> > I have classic asp files (IIS6) that need to be saved in UTF-8 format. I
> > save a file with Notepad using SAVE-AS & UTF-8 format. If I reopen the
> file
> > using Notepad and bring up the save-as dialog is defaults to UTF-8, which
> is
> > good. But after the file is modified and saved using Visual Interdev the
> > format switches back to ANSI format, which causes some international
> > characters to display as little boxes in the browser. I found one comment
> on
> > the internet about making sure the Meta tag with Charset=UTF-8 must be in
> the
> > file to instruct interdev to use the UTF-8 format when saving. This seems
> to
> > work on some .asp files but not all.
> >
> > Any suggestions would be appreciated.
> >
>
> You should also have:-
>
> <%@ codepage=65001 %>
>
> at the top of your page.
>
>
> --
> Anthony Jones - MVP ASP/ASP.NET
>
>
>
Here is a sample asp page, that always reverts back to ANSI format when
saved by visual Interdev.
<%@ Language=VBScript %>
<%@ codepage=65001 %>
<%
'language Indicator
Const SPANISH = "SPA"
Const ENGLISH = "ENG"
dim mvarLangCd
mvarLangCd = Ucase(Request.QueryString("LangCd"))
If mvarLangCd = "" Then
mvarLangCd = ENGLISH
End If
%>
<%=HTML_PAGE_TIMEOUT%>
TimeOut
time out
Robert
Re: Saving Classic ASP in UTF-8 Format
am 03.08.2007 22:23:38 von Anthony Jones
"RobertHillEDS" wrote in message
news:2182696F-87B2-494F-A39F-8F9BAE3D2B67@microsoft.com...
>
> --
> Robert Hill
>
>
> "Anthony Jones" wrote:
>
> > "RobertHillEDS" wrote in message
> > news:E61E658C-0A47-43E2-8C30-69B4A4185C2A@microsoft.com...
> > > I have classic asp files (IIS6) that need to be saved in UTF-8 format.
I
> > > save a file with Notepad using SAVE-AS & UTF-8 format. If I reopen
the
> > file
> > > using Notepad and bring up the save-as dialog is defaults to UTF-8,
which
> > is
> > > good. But after the file is modified and saved using Visual Interdev
the
> > > format switches back to ANSI format, which causes some international
> > > characters to display as little boxes in the browser. I found one
comment
> > on
> > > the internet about making sure the Meta tag with Charset=UTF-8 must be
in
> > the
> > > file to instruct interdev to use the UTF-8 format when saving. This
seems
> > to
> > > work on some .asp files but not all.
> > >
> > > Any suggestions would be appreciated.
> > >
> >
> > You should also have:-
> >
> > <%@ codepage=65001 %>
> >
> > at the top of your page.
> >
> >
> > --
> > Anthony Jones - MVP ASP/ASP.NET
> >
> >
> >
> Here is a sample asp page, that always reverts back to ANSI format when
> saved by visual Interdev.
>
> <%@ Language=VBScript %>
> <%@ codepage=65001 %>
Try:-
<%@ codepage=65001 Language=VBScript %>
>
> <%
> 'language Indicator
> Const SPANISH = "SPA"
> Const ENGLISH = "ENG"
> dim mvarLangCd
>
> mvarLangCd = Ucase(Request.QueryString("LangCd"))
> If mvarLangCd = "" Then
> mvarLangCd = ENGLISH
> End If
> %>
>
>
>
>
>
>
>
>
href="../_Themes/EPayStyleSheet.css">
> <%=HTML_PAGE_TIMEOUT%>
>
>
>