Solved

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

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

624 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