[Mono-list] UrlEncodeUnicode
Miguel de Icaza
miguel at ximian.com
Thu Dec 22 09:30:55 EST 2005
Hey,
> 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
This is fixed on SVN.
> 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.
>
--
Miguel de Icaza <miguel at ximian.com>
More information about the Mono-list
mailing list