Advertisement

08.15.2008 at 08:08AM PDT, ID: 23651518 | Points: 500
[x]
Attachment Details

Problems displaying pound currency symbol in ASP pages

Asked by tampatechman in Active Server Pages (ASP), Microsoft IIS Web Server

Tags:

Our web site consists of a settings.asp file which stores constants used throughout our web site. Here is a snippet of code from this file

<%
private const scCurSign = "£"
%>

We have other ASP files which include the above settings.asp to access these constants. Here is a code snippet from one of the related ASP files:

<!-- #include virtual="settings.asp" -->
<h1><%= scCurSign %></h1>

When executing the above code the currency symbol is not displayed. I've tried resetting the encoding on the settings.asp file to UTF-8. After I do this I am able to get the currency symbol to display for the first page view. Subsequent page views display a different high-ascii character, however, although the contents of the settings.asp page are not modified.

Anyone have any idea what could be causing this? This only started happening after we switched hosting companies. These same ASP files worked perfectly prior to the switch.Start Free Trial
[+][-]08.15.2008 at 08:16AM PDT, ID: 22238913

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.15.2008 at 09:08AM PDT, ID: 22239394

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.15.2008 at 09:11AM PDT, ID: 22239417

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628