Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-642

browser encoded UTF-8 character gets truncated by URI upon escaping

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.0.1
    • None
    • None
    • None

    Description

      a mozilla 1.5.0.10 get request of an iso-8859-1 form where a user inadvertently entered a chinese character arrives at my tomcat like

      String url= "/hp/index.php?address=addr&email=hauser@acm.org&name=Ralf能 GMX&subject=Newsletter"

      the chinese charcter 能 being encoded as 能

      URI uri = new URI(url, false, "ISO-8859-1");
      GetMethod httpGet = new GetMethod(uri.getEscapedURI());
      log.debug(httpGet.getURI());

      "/hp/index.php?address=addr&email=hauser@acm.org&name=Ralf&"

      How should I deal with that until the v4 is out? Will that no longer happen there?

      see also HTTPCLIENT-577

      Attachments

        Activity

          People

            Unassigned Unassigned
            ralfhauser Ralf Hauser
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: