Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Escape/UnEscape functions
Message
From
21/11/2001 12:36:39
 
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00584241
Message ID:
00584582
Views:
58
>>>Does anyone know of a function in VFP that converts the special characters in a URL to escape codes (E.g. #38; is an & ) and then back to regular characters?
>>>
>>>Thanks
>>>
>>>Costas
>>
>>UrlEscape() and UrlUnescape() are API calls in Shlwapi.dll. You can find a VB example of these functions here.
>>
>>HTH,
>
>The functions you gave me convert the special from %nn . I am looking for something that converts the characters from a format as #nn;
>

Can you use the strtran() function to convert all % symbols to # symbols first? Or will that cause other problems?

I think Rick really was chomping at the bit to post some code last night, and maybe he will do so. I think Foxweb has functions (www.foxweb.com) that would handle this, and I would also think that Rick has classes and functions that will do this (and much, much more) at www.west-wind.com.
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform