[gnet] [field_escape function] Still a problem with latin1 characters?



Hi,

It seems that there is still a problem in "field_escape" method with
latin1 characters. Here is a example:

----------
g_print ("ref: %s\n", gnet_uri_get_string (uri));
gnet_uri_unescape (uri);
g_print ("unescaped: %s\n", gnet_uri_get_string (uri));
gnet_uri_escape (uri);
g_print ("escaped: %s\n", gnet_uri_get_string (uri));

will output (bad):

ref: http://www.easter-eggs.fr:80/index.php/La%20vie%20de%20la%20soci%
E9t%E9
unescaped: http://www.easter-eggs.fr:80/index.php/La vie de la société
escaped: http://www.easter-eggs.fr:80/index.php/La%20vie%20de%20la%
20soci%.9t%.9

instead of (good):

ref: http://www.easter-eggs.fr:80/index.php/La%20vie%20de%20la%20soci%
E9t%E9
unescaped: http://www.easter-eggs.fr:80/index.php/La vie de la société
escaped: http://www.easter-eggs.fr:80/index.php/La%20vie%20de%20la%
20soci%E9t%E9

which will result in a 400 HTTP error.
----------

Any idea?

Thanks,

Bye




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]