UTF-8 Encoding and Languages

The Easy PHP Calendar will work with many different languages. The default encoding of the calendar is UTF-8. This is generally the web standard and there are no known issues with the calendar using this encoding format.

It is highly recommended that your pages also be set to the UTF-8 encoding format so that everything will display as expected. However, if you need a different encoding for your pages, in most instances, you can simply edit the calendar settings and change the encoding type to match your requirements. Please note, if you change the encoding format after entering events, the events may need to be re-entered as they were saved in the old encoding format.

In some instances, changing the encoding format of the calendar may not be the best solution and it may not produce the desired results. In this situation, it is best to leave the calendar set to UTF-8 and use built-in functions of PHP to convert the calendar output to your page encoding format.

In this example, the output of the calendar is converted from UTF-8 to Windows-1253 (Greek) to display inside of a Windows-1253 encoded page:

iconv_set_encoding("internal_encoding", "UTF-8");
iconv_set_encoding("output_encoding", "Windows-1253//TRANSLIT");

The key here is to wrap the calendar "require" statements with the additional PHP iconv encoding code (as shown above).


To find and/or change the encoding of your pages (not the calendar), look at the raw HTML and, usually near the top, for the charset:

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

Was this answer helpful?

 Print this Article

Also Read

Why do the pop-ups not work?

For the pop-ups to work, they must be enabled on the Pop-ups page of the Setup Manager. Pick...

How to use the unset command

If you are displaying multiple copies of the calendar on the same page, you may need to clear...

Server Path Issues

Server path issues usually occur when the calendar is moved from one server or directory to...

Why is the time an hour off?

Does your calendar mark the next day an hour late or an hour early? This probably is because of...

Why do background colors not show (white boxes)?

This generally happens when the categories haven't been properly saved. To fix this, log in to...