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 &#9734;:*&acute;&uml;`*:&#9734;" decodedstring = encoder.htmldecode(encodedstring) 

http://www.strictly-software.com/htmlencode


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -