Followhyperlink converts characters

K

Kenji

Everytime I send a string through ActiveWorkbook.FollowHyperlink, certain
characters get converted. For example "<" becomes "%3c"

Anyone know a solution to this? Thanks!

Kenji
 
J

John McGimpsey

Kenji said:
Everytime I send a string through ActiveWorkbook.FollowHyperlink, certain
characters get converted. For example "<" becomes "%3c"

Anyone know a solution to this? Thanks!

I'm not sure why you're looking for a solution. .FollowHyperlink
automatically resolves the address, which includes "escaping" reserved
characters like "<", which can be a URI delimiter, into its %-hex-hex
form. The resolution is (or should be) done per the internet standard
RFC 2396. See

http://www.ietf.org/rfc/rfc2396.txt?number=2396

Proposed standards have loosened up the need for escaping, and many
browsers resolve the characters before making the URI request, but the
escape sequences are still the standard.

As part of a URI (Address), < and %3c are equivalent.

Now, since you asked the question, I assume you ran into a problem with
the way .FollowHyperlink resolves the URI. Can you give more details?
 
K

Kenji

I'm trying to POST a XML file to my server.

I generate the XML file on my excel sheet and then POST it to the server.

<XML>
turns up as
%3cXML%3e which is not XML.

I tried doing what Jim Gordon said, but it does not work. I still get a %3c
instead of <

Kenji
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top