Re: Insert Symbol into Mysql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If he´s really using a any other charset instead of utf8 table, why not 
using utf8_decode and utf8_decode in his php files to solve this?


"Ashley Sheridan" <ash@xxxxxxxxxxxxxxxxxxxx> escreveu na mensagem 
news:1253101315.2275.4.camel@xxxxxxxxxxxx
On Wed, 2009-09-16 at 17:00 +0530, Samrat Kar wrote:
> I want to insert symbols like degree, plusminus, currency along with 
> string
> into Mysql database. Front is HTML form with javascript. Server side 
> scripts
> are written in PHP. Please help.
>
>
>
> Regards,
>
>
>
> Samrat Kar
>
Two ways to do this:

     1. Insert the characters as their escaped HTML codes, e.g. &#176;
        &#177; &#163; (for °, ± and £)
     2. Set the DB to use a utf8 character set, and insert the
        characters directly as is, without escaping them

Thanks,
Ash
http://www.ashleysheridan.co.uk





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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux