| View previous topic :: View next topic |
| Author |
Message |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Wed Aug 14, 2002 6:29 am Post subject: URL encoding |
|
|
I am looking for a good way to encode URLs, i.e. escaping web-unsafe characters for communication with a web server, like this:
This is a test + \folder
=
This%20is%20a%20test%20%2B%20%5Cfolder
I have a blurred memory of some DLL doing this, or was it only decoding? Or is it my imagination
Hmmm, maybe the only way is a VDS search and replace?
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Wed Aug 14, 2002 12:56 pm Post subject: |
|
|
Thanx. I'll look into that one.
Meanwhile it has turned out that there are some caveats when it comes to replacing chars in URLs. Some characters
should be replaced in resource names but not in paths, for instance:
'~', '_' and '@' should be encoded in resource names but not in paths, so
server.somesite.com/~files/code~example.htm
=
server.somesite.com/~files/code%7Eexample.htm
I'm compiling a list of chars and escape codes - if anyone else is interested I could post it.
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Oct 11, 2002 7:38 pm Post subject: |
|
|
Hi Dr. Dread,
Did you ever finish that list of codes? I'd like to see it.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Sat Oct 19, 2002 1:02 pm Post subject: |
|
|
Yup, I've got that list of codes. It comes out kinda bad coz it is tabbed, so I'll mail it to ya.
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
|