views:

48

answers:

1

This seems trivial

<cfset username = urldecode(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!

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

Does this work?

Henry
Or, perhaps, the opposite? `urlDecode(htmlEditFormat(URL.username),"utf-8")`
Al Everett