HtmlEn code UTF-8 [英] HtmlEncode UTF-8
问题描述
我使用Server.HtmlEn code在ASP经典一个UTF-8字符串,直到有一些口音字符串中例如,工作正常鲁斯图·雷茨贝尔,显示为RüstüRecber(R&安培;#195;&放大器;#188; ST&放大器;#195;&放大器;#188; Recber源)。
I'm using Server.HtmlEncode on a utf-8 string in asp-classic, which works fine until there are some accents in the string e.g. Rüstü Recber, which appears as Rüstü Recber (Rüstü Recber in the source).
我试过设置Response.Charset属性为UTF-8,但这没有任何区别。
I've tried setting the Response.Charset property to utf-8 but this doesn't make any difference.
推荐答案
更新(解决):添加&LT;%@ codePAGE = 65001%>在页面开始纠正问题(<一个href=\"http://technet.microsoft.com/en-us/library/bb742422.aspx\">http://technet.microsoft.com/en-us/library/bb742422.aspx)
Update (Solved): Adding <%@CODEPAGE=65001%> at the start of the page corrected the problem (http://technet.microsoft.com/en-us/library/bb742422.aspx)
所有的建议,非常感谢。
Many thanks for all of the suggestions.
这篇关于HtmlEn code UTF-8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!