SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: Allowing characters in the URL
-
Sep 26, 2008, 05:49 #1
- Join Date
- Sep 2008
- Posts
- 1
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Allowing characters in the URL
HI
In my application Iam using the Ajax
In the URL of my AJAX request Iam sending some parameters uisng query string whcih will be retrieved server side
As Iam using query string Iam not able to use + and & characters
so How should I construct my URL so that it supports special characters like & and +
any suggestions on this are greatly appreciated
regards
sunil
-
Sep 26, 2008, 06:05 #2
- Join Date
- Aug 2008
- Location
- The Netherlands
- Posts
- 9,097
- Mentioned
- 153 Post(s)
- Tagged
- 3 Thread(s)
Apply string.encode() on the string you are sending.
This will urlencode it.Rémon - Hosting Advisor
SitePoint forums will switch to Discourse soon! Make sure you're ready for it!
Minimal Bookmarks Tree
My Google Chrome extension: browsing bookmarks made easy
Bookmarks