[Mono-list] UrlEncodeUnicode

Bernhard schwimmlehrer at gmail.com
Tue Dec 20 11:42:51 EST 2005


Hi!

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...

TIA
Bernhard


<%@ Page Language="C#" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<%= Request["name"] %>
<p />
<a href="test4.aspx?name=<%= HttpUtility.UrlEncodeUnicode("schön")
%>">schön</a></body>
</html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test4.aspx
Type: application/octet-stream
Size: 252 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20051220/0702cc20/test4.obj


More information about the Mono-list mailing list