Lennart Ericson
asked on
zend server 7 and charset setting
Can't find out what to do to get my newly installed local web server (Zend Server 7) to show Swedish characters ( like Å, å, Ä, ä, Ö, ö) to show up correctly.
When using this code
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Namnlöst dokument</title>
</head>
<body>
<?php
echo "Å, å, Ä, ä, Ö, ö [1]<br />";
echo "Å, å, Ä, ä, Ö, ö [2]<br /> ";
?>
</body>
</html>
it prints this on the screen:
�, �, �, �, �, � [1]
Å, å, Ä, ä, Ö, ö [2]
What can be done to get it to show the characters [1] like the ones in [2]?
When using this code
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Namnlöst dokument</title>
</head>
<body>
<?php
echo "Å, å, Ä, ä, Ö, ö [1]<br />";
echo "Å, å, Ä, ä, Ö, ö [2]<br /> ";
?>
</body>
</html>
it prints this on the screen:
�, �, �, �, �, � [1]
Å, å, Ä, ä, Ö, ö [2]
What can be done to get it to show the characters [1] like the ones in [2]?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use iconv module to convert to UTF8 or use header (Content-type:
ASKER
Sorry, I don't understand. Would you, please, explain.
Explain what is unicode and how it is present on internet for 15 years or so?
ASKER
Thanks for your reply.
Would you, please, explain a little bit more in detail what you mean by "via server headers".