Quote:
Originally Posted by hro
You should have meta tag in your html head section. That would tell the browser what encoding to use. For example:
Code:
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
You could set your locales same in both machines. Too see what locale is in use, type 'locale' on command prompt. Check also what locale is used by root in each machine. If locales cannot be changed you can translate between encodings using 'recode', but that would require a lot of glue.
|
Thanks for the reply!
The locale command response is the same on both machines:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
So this cannot be the problem.
Yesterday I tried to place the meta tag in my output headers but with no help. But today I just tried it in a little test html file and it worked! Perhaps in my haste yesterday I inserted a syntax error.
It is strange to me that I need to do this with the one machine but not the other. I suspect it may be the Apache setup if that has a way to define a default character set. But as long as the meta tag solution works, that is fine!
Thanks for the help.