Solved

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

Posted on 2012-03-10
3
274 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 500 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

756 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