开发者

coldfusion url decode extended ascii

开发者 https://www.devze.com 2023-01-09 20:48 出处:网络
This seems trivial <cfset username = urld开发者_JAVA百科ecode(url.username, \"utf-8\")> Where username in the URL = %F8yvind

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

精彩评论

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