ASP.NET: UTF-8 and Server-side includes

Dear Experts,
I have .Net site and I'm using <!--#include virtual=""--> to include headers and footers. Everything has been working fine until now I need to do my website in French as well and none of the accented characters are rendered.
I am not using usercontrols because I don't want my element id's to be renamed... the site is xhtml and utf-8.
Is there a way?
LVL 3
mmiikaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

illCommented:
' is utf-8 defined in your header?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
0
topazgCommented:
Can you not just use things like:

&Aacute; or &#193; to get what you're after?

If you can the following is an excellent resource:

http://www.w3schools.com/html/html_entitiesref.asp

Just drop down to "ISO 8859-1 Character Entities"

Hope that helps,
- Graham
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mmiikaAuthor Commented:
yep utf-8 is defined, I tried before with entites and yes they work, but again I'd like to have it without... Do you know is there a way to set up how the SSI's are handled? It seems like the .net framework doesn't do anything with them (page directives set the contentype to utf-8)
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

topazgCommented:
How does the user define whether the page is written in French or English?
0
mmiikaAuthor Commented:
At the moment they don't... I am converting a site done in english for French, with different data and everything. Later on this new site will be done in english as well, at which point I'm going to have to write everything again anyway (using localization xml files etc...). So the way the user selects the language at that time is not decided.
0
topazgCommented:
Oh ok, fair enough - Have you tried setting your pages to the correct French ISO standard, I'm a bit fuzzy on how the other language standards interpret non-standard UK characters?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.