简体   繁体   中英

Can I Convert this utf8 Character?

I am using dom htm document function to scrape html and store it into MySQl. but I have notieced that for foriegn languages like chinese or japanese etc. some wierd charactors are stored in MySQL and I dont think any one can read this.., 门户,新闻,ータル,検索

so my question is can I convert this back into original form by using any code??

if not I want to eliminate this from my table beacuse there is no use of it.how can I eliminate only these charactors from table??

如果输入实际上是UTF-8,这应该可以解决问题:

echo iconv('UTF-8', 'ASCII//IGNORE', 'news,门户,æ–°é—»,portal,网易,163,china,门户ç');

Best way is to store this data after doing base64 encoding

1.) UNICODE TO UTF8

2.) UTF8 TO BASE64

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM