www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - std.uri.encode problem

reply Kazuhiro Inaba <Kazuhiro_member pathlink.com> writes:
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
parent "Walter" <newshound digitalmars.com> writes:
Yes, you're right. I'll fix it. -Walter
Jun 26 2004