[prev in list] [next in list] [prev in thread] [next in thread]
List: php-general
Subject: Re: [PHP] String Encodings - loose guidelines
From: Donovan Brooke <lists () euca ! us>
Date: 2011-01-28 18:25:46
Message-ID: 4D430A2A.1050601 () euca ! us
[Download RAW message or body]
Marc Guay wrote:
>> 1.) Saving strings to a database
>
> One thing I always forget to remember is to send tge "SET NAMES utf8"
> command to MySQL after making a connection. This will save you 1000
> headaches if you're working with non-latin characters. I can't count
> the number of times I've thrown htmlentities, htmlspecialchars,
> utf8_encode/decode/, stripslashes, etc, etc around trying to figure
> out why those É's aren't being saved or read properly. I imagine this
> might fall into the category of "best practice".
>
> Marc
Thanks for the heads up!
Donovan
--
D Brooke
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic