Click to See Complete Forum and Search --> : page support multiple languages


scorpioy
12-01-2006, 07:40 AM
In my page I had:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

but this caused the problem that it only displays English charactors, other languages will be displayed with unrecognizable code. When I remove those attributes, it worked.

But some page with <html> only still displays unrecognizable code if other languages are used. The database has been checked to support multiple language without problem. So can someone tell me is there anywhere else in the page I should pay attention to let page support multiple languages?

Thanks.

MarkR
12-01-2006, 01:09 PM
The page has no idea what languages it is or isn't in, the lang= attribute is purely an item of metadata and is completely ignored by the browser.

Your problems all revolve around encodings- it's possible that your browser thinks the page is in an encoding different from the one it's really in.

Fix that and it should all work.

At least, if you're using an encoding which includes all the characters from the language(s) you need to support (hint: Use utf8)

Mark