超簡單~加個函數轉換下就OK了~
UTF8Decode()
我的用法是Memo1.text:=UTF8Decode(idhttp1.get(''));
轉自:
http://hack518.blog.sohu.com/99364146.html
https://www.iteye.com/blog/netfork-391753
1、使用TIdHTTP,如果訪問的頁面是utf-8編碼,下載到頁面后,需要進行編碼轉換。
utf8toansi(idhttp1.Get( 'http://192.168.1.9/test.html '))