If a + char (should be decoded as space) comes after antoher %-encoded char when decoding charset is not UTF-8, then it will fail. It will output + instead of space.
Attached is patch with fix and testcase.
Description
If a + char (should be decoded as space) comes after antoher %-encoded char when decoding charset is not UTF-8, then it will fail. It will output + instead of space.
Attached is patch with fix and testcase.
David Yu added a comment - 12/Dec/08 03:44 AM Thanks for detecting the bug.
It actually needs more handling:
"%+1" <-- throws a java.lang.NumberFormatException
Will fix.
It actually needs more handling:
"%+1" <-- throws a java.lang.NumberFormatException
Will fix.