【发布时间】:2011-05-14 05:43:00
【问题描述】:
当我创建一个 WebClient 来使用一些 RESTful xml 时,我可以通过 2 种方式指定 unicode 编码:
WebClient wc = new WebClient ();
wc.Encoding = Encoding.UTF8;
wc.Encoding = UTF8Encoding.UTF8;
哪个是正确的/更好的?
【问题讨论】:
-
+1 从来没有想过。
标签: c# .net unicode utf-8 webclient