Icon Character Sets

When using the ElevateDB PHP Extension with Western European languages, it is normally possible to code your PHP scripts without specifying a content type or character set in the scripts. This is regardless of whether you are using ANSI or Unicode connections with the ElevateDB PHP Extension. However, if you intend to use a Unicode connection with the ElevateDB PHP Extension with characters sets other than the ISO-8859-1 (Latin1) character set, then it is required that you include a header in your PHP scripts to specify that the content coming from ElevateDB, and ultimately from the script, is using the UTF-8 character set. This will ensure that the content is interpreted/displayed correctly by the client web browser.

Information The ElevateDB PHP Extension always encodes/decodes all strings coming into and out of the extension as UTF-8.

The following example shows how you would use the PHP header function to specify the content type and character set at the beginning of your script:

<?php

header('Content-type: text/html; charset=utf-8');
Image