SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    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

  2. #2
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •