Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2012-03-10
3
Medium Priority
?
282 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 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

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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…

963 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