RE: [php-objects] character problem like åæø or AÅØ in php

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

 



Hi

You should add this code after the connection to database like this:

 

//connect 

$db = mysql_pconnect($dbhost,$dbuser,$dbpass)or die('Error connecting to
mysql'); 

mysql_select_db("$dbname",$db); 

 

mysql_query("SET NAMES 'utf8'");

 

 

From: php-objects@xxxxxxxxxxxxxxx [mailto:php-objects@xxxxxxxxxxxxxxx] On
Behalf Of bahalul kabir
Sent: Friday, June 18, 2010 12:03 PM
To: php-objects@xxxxxxxxxxxxxxx
Subject:  character problem like åæø or AÅØ in php

 

  

Problem : character like åøæ shows some strange char as output
Used
<meta http-equiv='Content-Type' content='text/html;
charset='utf-8' />
also set utf8 in the database

But it does not solve the problem

If is there any other way??

Thnax
Kabir

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





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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux