asp classic - Decode unicode ASP -
how can decode unicode string asp? have string :
> sweet dreams > ☆:*´¨`*:☆ and want write decoded string in json
asp not have htmldecode function, need use third party function decode:
asp can run jscript, means can take javascript function such 1 below , add following top:
<script language="jscript" runat="server"> and add @ bottom:
</script> save encoder.asp, can include , use functions of it:
dim encodedstring, decodedstring encodedstring = "sweet dreams ☆:*´¨`*:☆" decodedstring = encoder.htmldecode(encodedstring)
Comments
Post a Comment