posted
This seems like it would be very easy, but I think I'm either doing something wrong or things don't work the way I expect they would.
I'm displaying pages written in German and French. They have all those non-English characters that we've all come to know and love that will get turned to ?s when viewed wtih only a US character set.
I figured this is no problem, because anyone browsing for these pages are going to have German and French character sets loaded into their browsers.
However, to test this assumption, I loaded up the German character set into IE7 and found that they are still displaying as ?s. Am I doing something wrong or is it more complicated than what I'm thinking?
posted
You need to declare the encoding for the web page. Since you are using multiple languages, I suggest UTF-8. If the page is (compliant) XHTML, just add the appropriate xml header, and make sure the whole thing really is saved (or generated) as UTF-8. If the page is HTML, add a content-type metatag with the charset property set to utf-8. Make that one of the first tags inside your page head (just after title is typical), and of course, make sure the whole thing really is UTF-8.
posted
Nevermind. I'm being a big stupid. There's a character set being explicitly set in the html code that I was given.
Posts: 10177 | Registered: Apr 2001
| IP: Logged |
posted
I use firefox, and when I read pages that have Hebrew on them (like the paper), it's fine, no problems. But internet explorer hates my Hebrew! So I think part of it is the browsers, too.
Granted, fugu knows a lot more about it than I do. I just wanted to pretend like I was helping.
Posts: 7877 | Registered: Feb 2003
| IP: Logged |
posted
Raia: do these pages also have English or another language on them? IE will try, under certain circumstances, to 'guess' the encoding for a page. It is frequently wrong.
Posts: 15770 | Registered: Dec 2001
| IP: Logged |
posted
The Hebrew I've read off of webpages has English right beside it, and it wasn't a problem at all. but..... again, Firefox
Posts: 349 | Registered: Oct 2007
| IP: Logged |