really thanks! This is so clear explanation!
I'd set anything to utf-8,including server,client,my php PDO.
but it didn't work,sounds like my data were encoded (processed) to
another character(gbk) before them were saved into mysql.
so when i checked data from mysql,i will make a hardcode to decod
On 21 May 2010 10:47, Lester Caine wrote:
> Peter Lind wrote:
>>>
>>> The problem here is that PHP still does not know how to handle UTF8
>>> > properly
>
>> It's not*just* that PHP isn't handling utf8 perfectly. Encoding
>> between database and server is a rather complex issue, you're dealing
>
Peter Lind wrote:
The problem here is that PHP still does not know how to handle UTF8
> properly
It's not*just* that PHP isn't handling utf8 perfectly. Encoding
between database and server is a rather complex issue, you're dealing
with:
* database encoding
* database connection encoding
* ph
On 21 May 2010 10:16, Lester Caine wrote:
> cleverpig wrote:
>>
>> thanks Lester!
>>
>> What's double decode? Your meaning is like What's i said:
>> using $ Pdo-> exec ('SET character_set_results = gbk');
>> to make charset_set_results to be gbk?
>
> http://tikiwiki.org/UTF-8 seems to have docum
cleverpig wrote:
thanks Lester!
What's double decode? Your meaning is like What's i said:
using $ Pdo-> exec ('SET character_set_results = gbk');
to make charset_set_results to be gbk?
http://tikiwiki.org/UTF-8 seems to have documented everything ;)
Basically if the data going into a field
thanks Lester!
What's double decode? Your meaning is like What's i said:
using $ Pdo-> exec ('SET character_set_results = gbk');
to make charset_set_results to be gbk?
2010/5/21 Lester Caine :
> cleverpig wrote:
>> But if I use PDO's query function,there is all right without set charset:
>> $res
cleverpig wrote:
> But if I use PDO's query function,there is all right without set charset:
> $result=$myPDO->query("SELECT * FROM guests ORDER BY lname,fname");
> while($row=$result->fetch(PDO::FETCH_ASSOC)){
> echo $row["fname"]." ". $row["lname"];
> }
>
>> I encountered a problem using t
But if I use PDO's query function,there is all right without set charset:
$result=$myPDO->query("SELECT * FROM guests ORDER BY lname,fname");
while($row=$result->fetch(PDO::FETCH_ASSOC)){
echo $row["fname"]." ". $row["lname"];
}
2010/5/21 cleverpig :
> hi, everybody!
>
> I encountered a pr
8 matches
Mail list logo