zend server 7 and charset setting

Posted on 2014-08-30
Last Modified: 2014-09-03
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" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Namnlöst dokument</title>
echo "Å, å, Ä, ä, Ö, ö [1]<br />";
echo "&Aring;, &aring;, &Auml;, &auml;, &Ouml;, &ouml; [2]<br /> ";

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]?
Question by:lericson
    LVL 61

    Accepted Solution

    Default PHP5.4+ charset is UTF8 and that is sent via server headers.

    Author Comment

    Thanks for your reply.
    Would you, please, explain a little bit more in detail what you mean by "via server headers".
    LVL 61

    Expert Comment

    Use iconv module to convert to UTF8 or use header (Content-type:

    Author Comment

    Sorry, I don't understand. Would you, please, explain.
    LVL 61

    Expert Comment

    Explain what is unicode and how it is present on internet for 15 years or so?

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
    This video discusses moving either the default database or any database to a new volume.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now