[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

Re: [php-objects] Re: ÃÃÃ char insert into mysql



Hi shadow,
I used
mysql_query("SET CHARACTER SET utf8");
mysql_query("SET NAMES utf8");
as latin said....and works fine.
Thanx.

Kabir




________________________________
From: shadow <shadow3dcaster@xxxxxxxxxxx>
To: php-objects@xxxxxxxxxxxxxxx
Sent: Fri, February 26, 2010 5:54:30 PM
Subject:  Re: åæø char insert into mysql

   
Hello Kabir,

I think there are three solutions. The first is to use htmlentities( ) on the text you are inserting into the DB. The next solution involves changing things to utf8 using utf8_encode( ) and utf8_decode( ) later. The final solution is to use mb_internal_ encoding( ) and make sure all your scripts are UTF8 encoded and send the correct headers to the browser and your HTML is utf8 too. Good luck.

Shadow Caster

--- In php-objects@ yahoogroups. com, bahalul kabir <bahar_aub@. ..> wrote:
>
> Hi,
> 
> Having problem to insert å ø æ  like character into mysql with php.
> Table collation - utf8_unicode_ ci
> 
> Any help welcome!!
> 
> Kabir
> 
> 
> 
> 
> [Non-text portions of this message have been removed]
>


 


      

[Non-text portions of this message have been removed]


[PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux