p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Basics (http://p2p.wrox.com/forumdisplay.php?f=61)
-   -   how do I convert character to utf hex code? (http://p2p.wrox.com/showthread.php?t=65399)

mondayisgreat January 21st, 2008 12:22 PM

how do I convert character to utf hex code?
 
I'm try to call a url via a Rest web service. I has a username with international characters, which I'm trying to embed inside the url being called. The person's name has the character "Å", but when I create the url string it's not encoding. I've try Server.urlencode, but no luck.

Any advice on how to get the hex code for this international character?

Thanks in advance.


sdi126 January 24th, 2008 01:48 PM

Server.URLEncode should work fine for your needs. Are you trying to encode the whole URL? If so that is your problem you just need to use the function on the values of the querystring your passing to the rest function.

The hex value for that character is %C5 btw (if you just wanted to replace the weird character).

http://mynameissteve.com


All times are GMT -4. The time now is 09:54 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.