[Mono-list] UrlEncodeUnicode

Miguel de Icaza miguel at ximian.com
Wed Dec 21 06:55:47 EST 2005


Hello,

> I am using HttpUtility.UrlEncodeUnicode to encode german Umlauts. On Linux I
> get wrong encodings it seems:
> 
>     schön -> sch%f6n
> 
> On Windows (ASP.Net) it seems to work fine:
> 
>     schön -> sch%u00f6n
> 
> Am I doing anything wrong here? Can I fix this by updating to the latest
> Mono version from SVN (my installation is fairly up-to-date)? What's going
> on here? I am afraid that I am doing something stupid here...

This is a bug.  I just looked up the Microsoft documentation and we must
produce a string in the form %XXXX notation, we were trying to optimize
for %XX and %XXXX.

A fix is being checked into svn.

Miguel.


More information about the Mono-list mailing list