Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

slight HTMLEncode problem...

Status
Not open for further replies.

GIGN

Programmer
Oct 6, 2000
1,082
NZ
I have a database, over which I have no control. Some of the fields contain characters which are messing with my operation like "&" - which causing errors when used with URLEncoded strings.

It seems even if I HTMLEncode them before sending via GET, that the & is turned back into "&" for some reason.

I can get around it by doing double URLEncode, but then that messes up my display at the other end - I guess if there is some kind of conversion that undoes URLEncode?

Actually yes - is there something to URL-DE-code?

[bb]
 
Have you tried entering the code for "&"?
Just like &quot;&lt;&quot; will produce <, and &quot;&gt;&quot; will produce >,
you can type &amp; to get &

If it doesn't work, let me know. -Ovatvvon :-Q
 
I am doing an URLEncode instead - then replacing the &quot;+&quot;'s later on.
[bb]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top