- 论坛徽章:
- 0
|
you should focuse on the local site, usually encoded data provided by remote webservice
(such as soup) that you can't change. !!! Unicode(UTF- is not equal to GBK!!!
Before the results to output you must convert the differenet encoded data in to the
same one. For expierence you can use comandline to excuse PHP script which only
fetch data from soup and local database, see what's happend in original raw data.
If different, that's meaning the encoding in both not same.You should treat them
with defferent encoding.
If same, the only problem is to set correct http header and HTML charset
P.S. if you use http request to get data, you should concern about URI-Encoding,
Escape, method GET/POST etc...
Best, ulmer |
|