开发者

Show special chars like é in AutoComplete

开发者 https://www.devze.com 2023-03-30 03:25 出处:网络
How do I show special c开发者_运维百科hars like é in Ajax Control Toolkit\'s AutoComplete? They\'re showing as a white square in IE7 and a black diamond in FF4. I tried escaping them in the WebMethod

How do I show special c开发者_运维百科hars like é in Ajax Control Toolkit's AutoComplete? They're showing as a white square in IE7 and a black diamond in FF4. I tried escaping them in the WebMethod using HttpUtility.HtmlEncode but that made it worse!

(Also raised here http://ajaxcontroltoolkit.codeplex.com/workitem/26998)


When reading the values in from file, use

StreamReader re = new StreamReader(filepath,System.Text.Encoding.UTF7);

rather than

StreamReader re = new StreamReader(filepath);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号