开发者

coldfusion url decode extended ascii

This seems trivial

<cfset username = urld开发者_JAVA百科ecode(url.username, "utf-8")>

Where username in the URL = %F8yvind

Decoded username = �yvind

How do I get the corresponding html entity: &#248;?

I need to use the username as a lookup value in the db.

Thanks!


<cfset username = htmlEditFormat(urlDecode(URL.username, "utf-8"))>

Does this work?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜