Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Foreign Characters in Town Names display incorrectly in HTML/Classic ASP Page - sometimes...!

Posted on 2012-03-10
3
Medium Priority
?
280 Views
Last Modified: 2012-03-10
Hello,

I have a very strange issue.  I am building a villa website and I have created a page to edit the names of regions etc. in case a client has misspelt something.  If this page is on the root of the website, the characters all appear correctly, until you click the submit button... when the page is in an upper directory (admin for example), the characters don't appear correctly at all.  As an example, this appears correctly before you click submit: Côte d'Azur and then appears as: C¿te d'Azur - same page, only difference is that the submit button has been clicked!  If this page is in the admin directory, it always appears as C¿te d'Azur...!  Actually, I get a small square, but this site has switched it to an upsidedown question mark!

At present, the page dosn't update the DB - I've remmed that out to help find the solution.  It can be found at www.gorgeous-villas.com/test.asp.

It's driving me crazy, so help is appreciated!

Thanks in advance!
0
Comment
Question by:Nico2011
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 21

Accepted Solution

by:
Dale Burrell earned 2000 total points
ID: 37704755
Your character encoding is wrong. You've set the page to be utf-8 but the data your putting in the page is ISO-8859 (which is I think windows). You can test this by forcing your browser to change its encoding.

You either need to set the meta tag to ISO-8859 or (and this is probably the more correct solution) you need to change your codepage to utf-8 in your asp page. You may also need to play with the codepage, that will depend on what format you are storing the data in your database.

http://www.w3schools.com/asp/prop_charset.asp
http://www.w3schools.com/asp/prop_codepage.asp
0
 

Author Comment

by:Nico2011
ID: 37704770
Fabulous - it works!

Thank you and have  great weekend Dale.
0
 

Author Closing Comment

by:Nico2011
ID: 37704772
Thank you ver much!
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question