Solved

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

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Joomla main HTML page 4 46
CKEditor - will not function 7 33
radio button value 3 45
while loop in html mail format 5 32
Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now