[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 357
  • Last Modified:

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 "&Aring;, &aring;, &Auml;, &auml;, &Ouml;, &ouml; [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]?
0
Lennart Ericson
Asked:
Lennart Ericson
  • 3
  • 2
1 Solution
 
gheistCommented:
Default PHP5.4+ charset is UTF8 and that is sent via server headers.
0
 
Lennart EricsonAmateurAuthor Commented:
hheist,
Thanks for your reply.
Would you, please, explain a little bit more in detail what you mean by "via server headers".
0
 
gheistCommented:
Use iconv module to convert to UTF8 or use header (Content-type:
0
 
Lennart EricsonAmateurAuthor Commented:
Sorry, I don't understand. Would you, please, explain.
0
 
gheistCommented:
Explain what is unicode and how it is present on internet for 15 years or so?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now