Re: Re: languages and PHP
| From: | mike | Date: | Thu, 27 Sep 2007 18:52:02 +0000 |
| Subject: | Re: Re: languages and PHP | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262539@lists.php.net to get a copy of this message | ||
On 9/27/07, Edward Vermillion <evermillion@doggydoo.net> wrote:
> But what happens if you get data that's *not* UTF-8? Just because
> your html/form is set to UTF-8 doesn't mean that all your incoming
> data will be UTF-8.
just my experience, but as long as it has the meta tag w/ utf-8 in it,
the browser sends (and receives) utf-8. i can store the strings in
mysql without modification or character set conversion, it works like
a charm.
the only thing that might need help then is doing string modifications
like urlencoding, or replacement on the utf-8 characters... i haven't
had to do that yet, but otherwise the end-to-end utf-8 solution has
worked like a charm for me.
but yes, it does require browsers+utf8, running it out of that context
may or may not work depending on what you're trying to do with the
data..