Solved

Spanish characters not displaying on one web page but fine on others

Posted on 2013-11-07
3
267 Views
Last Modified: 2013-11-07
I have a client site that uses Spanish characters in some of the item names. These names are stored in a SQL DB as straight spanish characters (os opposed to their html encoding values), and they display just fine on most pages of the site...but on one or two pages they do not display correctly. Specifically when in the logged in student area.

Here's a working page:

http://aicme.com/catalog_cirriculum.asp?cid=23

And here's a non-working page:

http://aicme.com/AIBu/students/courses.asp  *

* Login with user 'gbtester' and password 'test', then click on 'My Courses', then look at the Nuerology section.

I have compared the above pages and they have identical character sets ie. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

They run under the same site in IIS 7.0 so the MIME Types set there apply to all pages.

So, what is the problem here?
0
Comment
Question by:worthyking1
3 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39631848
Is that page actually saved as UTF-8? (I mean the actual courses.asp page)
I suspect the encoding is something else maybe ANSII
0
 
LVL 15

Expert Comment

by:pateljitu
ID: 39631899
Please add this on code on top pf the page:

<%
    Response.CharSet = "UTF-8"
    Response.CodePage = 65001
%>

Open in new window

0
 
LVL 6

Author Closing Comment

by:worthyking1
ID: 39632261
Thanks to GaryC123 for this simple answer that eluded me due to Adobe's fine work.

In Dreamweaver the page properties showed the file as having UTF-8 encoding so I had precluded that possibility; but after reading GaryC123's proposed solution I became suspicious and opened the file in Notepad, then re-saved it and explicitly set the encoding to UTF-8...and Voila! she works.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This article discusses four methods for overlaying images in a container on a web page
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…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

708 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

12 Experts available now in Live!

Get 1:1 Help Now