HtmlEn code UTF-8 [英] HtmlEncode UTF-8

查看:183
本文介绍了HtmlEn code 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆