简体   繁体   中英

How can I get special characters with Web Client in WP?

I want to make dynamic message grid in my application's mainpage and I am getting it from my domain's html file. For example;

html
body
----Böşç Hello----
/body
/html

(I did not write <> tags for understanding.)

and I am getting them with my WebClient. But it is not getting this words "ö,ş,ç" correctly.

How can I do it? or have you any other solution?

Thanks.

Have you tried tweaking the encoding?

WebClient client = new WebClient ();
client.Encoding = System.Text.Encoding.UTF8;

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