Re: utf-8 in $_POST
| From: | mike | Date: | Wed, 16 Jan 2008 15:17:21 +0000 |
| Subject: | Re: utf-8 in $_POST | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267391@lists.php.net to get a copy of this message | ||
you don't have to have your files in utf-8 for it to work, just the
browser header.
although any utf-8 characters in your files will look funky. it just
depends where the content comes from... you could always use ®
for the (r) registered symbol for example.
i'd be more apt to figuring out how to make things work under utf-8
than trying to force something from utf-8 back to iso-8859-1...
personally :)
On 1/16/08, Olav Mørkrid <olav.morkrid@gmail.com> wrote:
> the user agents in question are various mobile phones, which as you
> might guess are premature technology and have their own ways with
> things.
>
> here is an example posting from a Samsung D600 which insists on
> posting form data in UTF-8 even though i serve it ISO-8859-1 and it
> claims to support all character sets.
>
> [_POST] => Array
> (
> [message] => Norwegian characters: øá
> )
>
> [_SERVER] => Array
> (
> [HTTP_ACCEPT_CHARSET] => *
> [CONTENT_TYPE] => application/x-www-form-urlencoded; charset=utf-8
> [HTTP_USER_AGENT] => SAMSUNG-SGH-D600E/1.0
> Profile/MIDP-2.0 Configuration/CLDC-1.1 UP.Browser/6.2.3.3.c.1.101
> (GUI) MMP/2.0
> )
>
> i would consider switching to utf-8 if i knew how make the windows
> version of emacs work fine with utf-8 text files (and still work with
> iso-8859-1 files as well).