Link to home
Start Free TrialLog in
Avatar of mmiika
mmiika

asked on

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?
Avatar of ill
ill
Flag of Slovakia image

' 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" />
ASKER CERTIFIED SOLUTION
Avatar of topazg
topazg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mmiika
mmiika

ASKER

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)
How does the user define whether the page is written in French or English?
Avatar of mmiika

ASKER

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.
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?