French Character Encoding... - Page 1

User 2139597 Photo


Registered User
2 posts

Hello,
Not sure others have come across this issue or not but I am hoping someone can help me with a problem. I use SoThink DHTML Menu to create dynamic menu's from databases. I develop sites for clients in Montreal Quebec that contain French characters. I have always used HotDogPro for my editor but I recently upgraded my PC and HotDogPro will not install on a Win x-86 system so I purchased CoffeeCup as a replacement. What I have found is when I open a document and save it in CoffeeCup the French characters are always jumbled. I have another PC with HotDogPro and if I open the same file in that program and save it the issue goes away. I am using the proper Unicode Character Set so that is not the issue. I have a menu opened right now in CoffeeCup and if I don't make any changes but just click Save it will break the French characters, but as soon as I save the same file in SoThink DHTML Menu it works fine. Anyone having a workaround for the way CoffeeCup is breaking my code? Is this a known bug? Does anyone have an idea of what software would work better than CoffeeCup?

Thanks
JW
User 122279 Photo


Senior Advisor
14,450 posts

What doctype declaration and character set are you using? And do you know what character set is the default installed on your server(s)? Since I'm creating sites in Norwegian, German and sometimes Turkish, I have found that these things are important, and also that CoffeeCup HTML Editor can handle it all.

Waiting for your reply...
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2139597 Photo


Registered User
2 posts

I am using the following;

<!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" dir="ltr" lang="fr-CA" xml:lang="fr">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />

The DHTML menu works fine with the above encoding. If I change the encoding to

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

the page looks fine but the menu doesn't.

It appears the two are rendered differently in the browser.

Here is what I have found... I opened the document in Dreamweaver and saved it. The characters in this particular file are the accented e which is, using the keyboard shortcut, alt + 130 which works fine like this é and looks fine in CoffeeCup. The problem is in the rendered web site page it is rendered differently. After opening the file in Dreamweaver the character was converted to the ascii equivalent of the same which was &#233; so I opened the file in CoffeeCup again and it appears to be working with the ascii character value. This will become somewhat time consuming to redefine all these characters in CoffeeCup but I guess it is a necessary evil. I think this is a serious bug in CoffeeCup which the developers should take a hard look at.



Thanks
JW
User 122279 Photo


Senior Advisor
14,450 posts

What you could try is changing to html5 with this at the page top:

<!DOCTYPE html>
<html lang="fr-CA">
<head>
<meta charset="utf-8">

... etc

You could also try placing a .htaccess file in your root folder ( public_html or www usually) on the server with this text

AddDefaultCharset utf-8


If you can't upload a 'dot file', make it htaccess.txt and then change the name of the file once uploaded.

I don't know anything about your menu programme, so I can't say whether it will work or not. But if you have the latest version of the CC HTML Editor, you should be fine with creating the menu with the built-in css menu creator.

I hope you get it to work!
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 122279 Photo


Senior Advisor
14,450 posts

Possibly you could also try using either &eacute; or &#233; for the é.

You will have to experiment if any of these solutions work. Let us know how you are getting on :)
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.