473,406 Members | 2,259 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Russian language encoding issue

Hello,

I am having an issue, and looking for the solution. I am trying to save Russian language content (with some english) into a html file, by entering the content thru the .net c# web application. I am trying using 'escape' to encode content in javascript and passing a string to server side thru the service. On the server side I am using URI.unescapedatastring, to enescape the content. I am getting "Invalid URI" error. I tried to use encodeURI in javascript. But no luck. Can anybody have any ideas, what might be the issue? Any help or workarround would be appriated.

Thanks in advance.
Oct 3 '08 #1
4 3276
mldisibio
190 Expert 100+
Have you tried System.Web.HtmlUtility.HtmlDecode(string) or System.Web.HttpServerUtility.HtmlDecode(string) to unescape the values on the server side?
Oct 3 '08 #2
Have you tried System.Web.HtmlUtility.HtmlDecode(string) or System.Web.HttpServerUtility.HtmlDecode(string) to unescape the values on the server side?
Thank you for the response. I tried the following,

Used 'escape(string)' in javascript, and then used

System.Web.HttpUtility.UrlDecode(dataString, System.Text.Encoding.UTF8).

And changed the Charset in html document as 'UTF-8'. Which is working good.

But I am having another issue. while I run the project & debug mode, encoding good. If I access the the URL from the browser(not running thru debug mode), then encoding doesn't work. Any clue?

Thanks
Oct 3 '08 #3
Thank you for the response. I tried the following,

Used 'escape(string)' in javascript, and then used

System.Web.HttpUtility.UrlDecode(dataString, System.Text.Encoding.UTF8).

And changed the Charset in html document as 'UTF-8'. Which is working good.

But I am having another issue. while I run the project & debug mode, encoding good. If I access the the URL from the browser(not running thru debug mode), then encoding doesn't work. Any clue?

Thanks

Never mind. I published the web site, and everything working fine.
Oct 3 '08 #4
mldisibio
190 Expert 100+
I can only make a few suggestions:
- when running directly in the browser, can you check if the browser encoding is set to utf-8? In Internet Explorer this is usually under the View menu - Encoding.
- have you uploaded your revised files correctly? If it is working in debug mode but not in the browser, perhaps the project was not correctly recompiled to the web server?
Oct 3 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Sayeed | last post by:
How is the charset determined for this Russian page? http://www.planetaquarium.com:8204/discography/trans/time_of_th1097.html It's not set as a META tag in the head:...
1
by: qushui_chen | last post by:
Dear friend,Now ,i am writing a Smtp Client. but there have problem bother me that it is send Russian Language Html ,Mail is found identify code like "??" in mailBody. Mail source content,that...
1
by: Sonu | last post by:
Hello, I have a multilingual application, to which I am adding Russian. The prolem is that all the dialog boxes & Menus are showing junk characters instead of Cyrillics!! while my window contents...
2
by: Ross Noe via .NET 247 | last post by:
(Type your message here) -------------------------------- From: Ross Noe I created an XML file using ASP that has Russian characters. Forsome reason ASP.Net doesn't read the Russian...
2
by: Alexander S. | last post by:
There is bug in 7.4.2, concerning unicode and russian letters. For db in unicode russian data doesn`t order in alphabetical order (rows group with the same first letter but not in alphabetical...
3
by: Roger Withnell | last post by:
I am using ASP, VBScript and MSSQL Server. I do not understand the purpose of the VBS Codepage setting - <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> nor the meta tag - <meta...
6
by: Victor | last post by:
Hi everybody, could anybody help me with the following problem : I need to set a cookie containing a Russian character string as the value, using the construct "document.cookie = ...". The...
5
by: Hank Moss | last post by:
I've been able to get the <qelement and the CSS quotes property to work well together in English, but not in Russian or mixed Russian and English. I probably don't have a firm enough grasp of the...
1
by: sandeepindia | last post by:
I m using PHP Version 4.3.2 & Mysql version 3.23.58(No collation etc). My site is in shift JIS encoding. I've both japanese users & russian users. They have entered their member profile in their...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.