Re: how php knows the charset of my code?
| From: | troels knak-nielsen | Date: | Thu, 27 Sep 2007 18:37:29 +0000 |
| Subject: | Re: how php knows the charset of my code? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32476@lists.php.net to get a copy of this message | ||
On 9/27/07, drysler <drysler@gmx.de> wrote:
> Hello,
>
> i am practising with charsets at the moment and so i thought:
>
> -> How does PHP know the charset i use in my source-code?
> -> Are php-sources limited to specific charsets?
> -> In which areas you have to be aware of the source-code-charset?
>
>
> Perhaps somebody here on the list can tell something about these issues?
> Thanks!
>
Unless I'm mistaken, PHP expects the source files to be in the
internal charset, which is ISO-8859-1. If you use the mbstring
extension, you can use different internal encodings. See:
http://www.php.net/mbstring
Another good read on charset vs. PHP is:
http://www.phpwact.org/php/i18n/charsets?s=utf
--
troels