Új hozzászólás Aktív témák

  • TBG

    senior tag

    válasz pakriksz #3733 üzenetére

    Az URLEncoder teljesen jól működik. Ismerni kellene pár szabványt és nem anyázni.

    http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4

    Control names and values are escaped. Space characters are replaced by `+', and then reserved characters are escaped as described in [RFC1738],

    Tehát a replaceAll() nem gányolás. A gányolás az, hogy space van az URL-ben.

    http://www.w3schools.com/TAGS/ref_urlencode.asp

    URLs can only be sent over the Internet using the ASCII character-set.

    Since URLs often contain characters outside the ASCII set, the URL has to be converted into a valid ASCII format.

    URL encoding replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits.

    URLs cannot contain spaces. URL encoding normally replaces a space with a + sign.

Új hozzászólás Aktív témák