Jump to content

Characters issue [SOLVED]


EricThePanic

Recommended Posts

Hello all,

I'm having problems with some of the characters on my website. My site is in french, so I need accents like è, é, à, etc... As you can see on my frontpage (http://www.transquebec.org/operations/) the accents are not displaying correctly, but only in some places like the news of the menu bar... it shows a square instead. My DB is in UTF-8, my local.config also... I've tried everything...

Thanks for your help!

Eric

Link to comment
Share on other sites

  • Administrators

I just looked at the source for your page and the code is not there in the head;

currently it is

<!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" dir="ltr">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=7">

try changing it to

<!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">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />

Link to comment
Share on other sites

  • Moderators

This is what i use.

In the header or layout tpl depending on your site put this,

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

And in the local.config.php make sure this is in there,

# Page encoding options
Config::Set('PAGE_ENCODING', 'UTF-8');
Config::Set('DB_CHARSET_NAME', 'utf8');

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...