Need help related to UrlDecode

mr_vishrut

New member
Joined
Nov 23, 2009
Messages
1
Location
Bangalore
Programming Experience
3-5
Hi, I am having issues with Japnese character encoding and decoding.
Goto Google Search for EF 奨学金 海外 留学 Click on the link for ‚Z—¯Šw‚È‚çEF - | ‚ZŒðŠ·—¯Šw
View Source and s.prop9='EF 螂ィ蟄ヲ驥・豬キ螟・逡吝ュヲ'; to get japnese characters you need to view original source in IEDeveloper.

When I view the value of cookie 'keyword' using IE developer, it give me perfect value as If I do System.Web.HttpUtility.UrlDecode or Server.UrlDecode in a separate aspx test page, it gives me perfect value
but when i check the value in view source it is getting scrambled.

In code I am doing like this.
pageTagObject.Keyword = GetCookieValue(context, "Keyword")
If Not String.IsNullOrEmpty(pageTagObject.Keyword) Then
pageTagObject.Keyword = System.Web.HttpUtility.UrlDecode(pageTagObject.Keyword)
End If


With htmlTextWriteLiner
.WriteLine("s.prop9='" & pageInfo.Keyword & "';")


any help is welcome in advance.
 
Top Bottom