For Programmers: Free Programming Magazines  


Home > Archive > ASP > March 2004 > Problem using UTF8 include files in ANSI ASP files on IIS6. Works fine on IIS5









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problem using UTF8 include files in ANSI ASP files on IIS6. Works fine on IIS5
JAXN

2004-03-28, 9:57 pm

Hello newsgroup

Trying to move to IIS 6 (and Windows Server 2003 standard edition) we are
now having problems using UTF8 files as include files for our ASP pages.
This worked fine under IIS5. In our solution our ASP files are stores as
ANSI files (the standard way for Interdev and notepad to store files).

At our company we have been using UTF8 files as include files in ASP. We
have stored these UTF8 files using Notepad since Interdev for some reason
can't. The ASP files are still encoded in ANSI since we cannot work with
UTF8 encoded files in InterDev. (using the database for this content is out
of the question on these pages ..it is a long story)

We got aware of the problem when getting a JavaScript error in a split
function in javascript running one of the pages.

Here is some JavaScript from "View Source" in the browser for both IIS5 and
IIS6. Notice that the split char is missing ¤ in the source generated from
IIS6.

IIS5
------

if(strHTMLID.length>1)
arHTMLID = strHTMLID.split("¤")

if(strNummeric.length>1)
arNummeric = strNummeric.split("¤")

if(strNummericMin.length>1)
arNummericMin = strNummericMin.split("¤¤")


IIS6
-----

if(strHTMLID.length>1)
arHTMLID = strHTMLID.split("")

if(strNummeric.length>1)
arNummeric = strNummeric.split("")

if(strNummericMin.length>1)
arNummericMin = strNummericMin.split("")

We can get it to work on the IIS6 if we actually store the ASP files as UTF8
using notepad. But it is not a good solution since Interdev cannot store in
UTF8, but will store is as ANSI as soon as we try to edit the ASP files.

Does anyone have a solution or good ideas to solve or get around this
problem?




Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com