[Mono-list] UrlEncodeUnicode

Bernhard schwimmlehrer at gmail.com
Thu Dec 22 05:12:42 EST 2005


Hi Miguel,

many thanks for your fix, but I think it's still not right.

When I manually add a "u" after the % in the browser adress bar it works, 
i.e.

    sch%u00f6n (=Microsoft's output) works but
    sch%00f6n (that is what mono does now) does not work

Best Regards
Bernhard

----- Original Message ----- 
> 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