> This hasn't come up too much yet in one of the databases on my site, but
as
> I get closer to starting a big project, I thought I'd get an idea of how
the
> rest of you handle this.
>
> How do you handle accented words and other problematic symbols on your
> database-driven sites? If you need to store one, do you store it as the
> actual character and display it with htmlentities, or do you store it as
the
> html entity? In other words, do most of you store "Law & Order" in your
> database or "Law & Order"? "Renée" or "Renée"
>
> What are the pros and cons of storing them in the database in either
format?

One other thing to mention... searching. If you search your database, make
sure you make the search string match the encoding of your database. So if
you store the data encoded, then the search string has to be encoded, too.
Seems obvious, but I could imagine it tripping someone up for a while until
they figured it out.

---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to