digitalmars.D.bugs - std.uri.encode problem
- Kazuhiro Inaba (13/13) Jun 24 2004 std.uri.encode handles non-ascii characters incorrectly.
- Walter (1/1) Jun 26 2004 Yes, you're right. I'll fix it. -Walter
std.uri.encode handles non-ascii characters incorrectly. For example: | import std.uri; | import std.stream; | int main() | { | stdout.writeLine( encode( decode("%E3%81%82") ) ); | return 0; | } prints "%E3%E3%E3". The while-loop at std/uri.d Line164 to 171 should increment 'j', I think. -- Kaz. (ki kmonos.net)
Jun 24 2004