<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Programming with .NET - General</title><link>http://forums.silverlight.net/forums/17.aspx</link><description>General discussions around authoring Silverlight .NET applications.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: Problem with swedish characters åäö in webclient</title><link>http://forums.silverlight.net/forums/thread/220246.aspx</link><pubDate>Fri, 15 May 2009 08:32:05 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:220246</guid><dc:creator>deslo</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/220246.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=220246</wfw:commentRss><description>&lt;p&gt;Could someone post an example of this encoding and decoding? I can&amp;#39;t seem to make it work.&lt;/p&gt;&lt;p&gt;Code at client side:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;string&lt;/span&gt; wUrl = String.Format(&lt;span class="st"&gt;&amp;quot;caller={0}&amp;amp;proc={1}&amp;quot;&lt;/span&gt;, wCaller, wProc);
wUrl = &amp;quot;http:&lt;span class="cmt"&gt;//localhost:50899/slproxy.aspx?&amp;quot; + wUrl;          &lt;/span&gt;

webClient.DownloadStringCompleted += &lt;span class="kwd"&gt;new&lt;/span&gt; DownloadStringCompletedEventHandler(webclient_DownloadStringCompleted);
webClient.DownloadStringAsync(&lt;span class="kwd"&gt;new&lt;/span&gt; Uri(wUrl, UriKind.Absolute));&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Code at server side:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;Request.ContentEncoding = Encoding.UTF8;
&lt;span class="kwd"&gt;string&lt;/span&gt; caller = Request.QueryString.Get(&lt;span class="st"&gt;&amp;quot;caller&amp;quot;&lt;/span&gt;);
&lt;span class="kwd"&gt;string&lt;/span&gt; proc = Request.QueryString.Get(&lt;span class="st"&gt;&amp;quot;proc&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&amp;nbsp;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Problem with swedish characters åäö in webclient</title><link>http://forums.silverlight.net/forums/thread/217373.aspx</link><pubDate>Fri, 08 May 2009 18:27:39 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:217373</guid><dc:creator>SharpGIS</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/217373.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=217373</wfw:commentRss><description>&lt;p&gt;Your problem could also be at the server end though...&lt;/p&gt;&lt;p&gt;Usually using UTF8 should work for those characters. Just make sure you use UTF8 in both ends for encoding and decoding. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Problem with swedish characters åäö in webclient</title><link>http://forums.silverlight.net/forums/thread/217345.aspx</link><pubDate>Fri, 08 May 2009 17:15:59 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:217345</guid><dc:creator>MarkMonster</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/217345.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=217345</wfw:commentRss><description>That&amp;#39;s basically because of the Encoding. Do those characters exist in the encoding used?</description></item><item><title>Re: Problem with swedish characters åäö in webclient</title><link>http://forums.silverlight.net/forums/thread/217275.aspx</link><pubDate>Fri, 08 May 2009 14:54:05 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:217275</guid><dc:creator>mbaker3</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/217275.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=217275</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Have you tried using HttpUtility.HtmlEncode()? I know thats not exactly what its for but at least the data will be preserved during transfer.&lt;/p&gt;&lt;p&gt;Alternatively it may be worth while to look into the Encoding class (System.text.Encoding). I haven&amp;#39;t used it before but converting a compatible format may work.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Problem with swedish characters åäö in webclient</title><link>http://forums.silverlight.net/forums/thread/217173.aspx</link><pubDate>Fri, 08 May 2009 10:19:19 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:217173</guid><dc:creator>deslo</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/217173.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=217173</wfw:commentRss><description>&lt;p&gt;I have a problem with saving data. I use a webclient to communicate with the server, and each time I send something with a å ä or ö in it, that character is converted when it reaches the server. I&amp;#39;ve tried setting webClient.Encoding but there aren&amp;#39;t that many alternatives, and nothing works. How do I solve this?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>