- Create Account

Charset problem

Forums > HTMLHttpRequest > Charset problem
Author
Message

1) Sophocles J. Tsivides Group: Guests
IP: 77.49.--.--
Hi,
I'm testing the "HTMLHttpRequest v1.0beta3" for a web site i'm trying to build.
Greek language in the content html pages, does not appear (question marks instead) in Opera, Netscape & Firefox.
Regards
cryonics2003@yahoo.gr

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.118.--.--
Make sure all your pages are set to the same charset -- both the loading document and the loaded document. I would suggest UTF-8 is a reasonable choice, provided you have a Unicode capable text editor, or failing that the ISO greek character set.

Good luck - Angus.

3) Sophocles J. Tsivides Group: Guests
IP: 77.49.--.--
But..
Forgot to mention that in IE everything works fine.
All the other browsers have the problem with "?" instead of greek characters.
All content pages have Charset set to "iso-8859-7"
Regards
Sophocles

4) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.118.--.--
Check to make sure that they are all valid XHTML as well (presuming you are using that document format?). Otherwise, trial UTF-8 as a charset which is a lot more flexible. There's nothing in the script that stops it working with non-English languages.

- Angus.

5) Sophocles J. Tsivides Group: Guests
IP: 77.49.--.--
Problem solved.
In order greek lang to work for Opera, Netscape & Firefox, all Content Pages need at the very start of them:
<?xml version="1.0" encoding="iso-8859-7" ?>
Regards
Sophocles

6) molendijk Group: Members
Posts: 78 Joined: 29 Nov 2005 Location: The Netherlands (Groningen) IP: 84.86.--.--
Hello Angus,
I downloaded your HttpRequest script, put a 'é' in the text of htmlhttprequest.html, put also a 'é' in the text of advantages.html. In both cases, the French character does not display correctly: I get '?' in FF, anaother weird sign in IE. In both files, we have '<meta http-equiv="Content-type" content="text/html; charset=utf-8" />'. I tried other charsets (uniformly), but nothing works for all browsers and all files at the same time. Do you know what's the problem? (This is something you often see with Ajax-requests).

Thanks,
Arie.
Arie.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.