473,725 Members | 2,295 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Russian Characters and ASP.Net

(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 charactersprope rly. Is .net capable of reading Russian characters from anXML file created with ASP? The application that the users use toupdate the XML file is still written in ASP and not in ASP.Net.Thanks in advance.

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>5hK79qV8jUu ruWtcL1GaXQ==</Id>
Nov 19 '05 #1
2 2887
"Ross Noe via .NET 247" <an*******@dotn et247.com> wrote in message news:e9******** ******@TK2MSFTN GP14.phx.gbl...
I created an XML file using ASP that has Russian characters. For some
reason ASP.Net doesn't read the Russian characters properly. Is .net
capable of reading Russian characters from an XML file created with ASP?


Almost certainly so, this is probably a difference in encoding between the
ASP application that generated the XML document containing Russian
characters and the encoding used by ASP.NET to read them. Assuming
the ASP and ASP.NET applications are on the same web server, then
they had access to the same code pages, therefore ASP.NET can read
the document once it is reading it using the correct Encoding. You just
need to tell it which one.

The XML document should be created with an XMLDecl that contains
an encoding pseudo-attribute. The correct encoding should be specified
there by the ASP application when it produces the XML file. If you had
previously used a similar ASP application to consume the XML file in the
past, it's possible you may not have noticed the XML file was missing this
necessary encoding declaration because both of your applications had a
tacit agreement as to the encoding going on. The encoding declaration is
important for different platforms to successfully interoperate with each
other.

In ASP.NET, try loading the XML file through a StreamReader and make
sure you create the StreamReader by passing it an Encoding (if you're not
sure which ones to use, start with the obvious Unicode (UTF-16) one and
if that doesn't work then proceed from there to GetEncoding( ) for various
Russian code pages, see the documentation for the System.Text.Enc oding
class for more info on getting the encoding associated with a code page).

I suggest StreamReader because you need to take control of precisely what
encoding the XmlTextReader that it'll be wrapped by (if not by you, then by
the Load( ) method of XmlDocument) uses to read it. You don't have this
degree of control if you use one of the short-cut overloads that takes a file
name.
Derek Harmon
Nov 19 '05 #2
Russian characters have always been a problem. I remember the first Russian
characters I encountered - Boris Badenov and Natasha Fatale, on the Ricky
and Bullwinkle cartoons. Boy, they were always causing trouble! Don't forget
Nikita Kruschev, who once pounded his shoe on a table at the U.N. to make a
point. And of course today we have Vladimir Putin, who, while certainly
lacking the outward hostility of his precursors, still manages to throw a
wrench in the works now and then.

Wish I could tell you what to do about them. Hopefully, at least I've
managed to relieve some of your tension.

--
;-),

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Ross Noe via .NET 247" <an*******@dotn et247.com> wrote in message
news:e9******** ******@TK2MSFTN GP14.phx.gbl...
(Type your message here)

--------------------------------
From: Ross Noe
I created an XML file using ASP that has Russian characters. For some reason
ASP.Net doesn't read the Russian characters properly. Is .net capable of
reading Russian characters from an XML file created with ASP? The
application that the users use to update the XML file is still written in
ASP and not in ASP.Net. Thanks in advance.

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>5hK79qV8jUu ruWtcL1GaXQ==</Id>
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1926
by: M. Posseth | last post by:
hello ,, does someone know how i can acomplish the folowing task ,, i have a program with a HTML interface and i need to write Russian chars to the generated HTML files my database is unicode ( access 2000 ) the characters in the database are perfect however when they arive in vb and written to the text file they are transformed to squares and other garbage
5
2812
by: Steven | last post by:
Hi all, I would like to create a site which shows text in English or in Russian (depending on the user's choice). Problem is that I can't save the pages in Unicode (Unicode can contain Russian characters), because IIS can't handle Unicode ASP pages (correct, right?!). So how can I have normal (ASCII) ASP pages, which can show either text in English or Russian (charset Windows-1251)???
1
1944
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 are working fine. I tried setting the Regional options to Russion, but still the same problem, I also put the font of the dialog box to be Arial Unicode MS but that didn't help. What do I have to do to make my Dialog boxes and fonts come up in...
3
7311
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 http-equiv="Content-Type" content="text/html; charset=iso-8859-1">. I assume the SQL Server Collation setting has a purpose in this also. What should the Codepage, charset and Collation be set at to build a site with Russian text?
1
1486
by: Gerald | last post by:
Hi group, my question is both for asp.net. I have to do a website in Russian. So far, I have some problems with the russian character. Can someone give me good tips on how to make non ascii website with asp.net and C#? Thank you
6
4363
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 whole project runs in the UTF-8 encoding. The Internet Explorer handles this cookie correctly, whereas the FireFox writes only some byte gargabe and then reads it back.
9
5358
by: Roger Withnell | last post by:
I've built a site in English and an now translating it into Russian. My html charset= utf-8 and my vbscript codepage is 65001. I'm using DreamWeaver. If there is a Javascript function in a page then I can cut and paste the Russian in place of the English satisfactorily. I have a page of common Javascript functions in an include file. When I cut and paste Russian into this file, all I get is a string of ?????????????
1
3527
by: kersti | last post by:
We've just started to work on a Russian website. In the near future we expect to be running with a Japanese one as well. Currently our setup doesn't allow Russian characters - we need to do any Russian characters using unicode. What do I need to do to allow my developers to drop in Russian text without upsetting the 25 English websites that we're running?
1
2859
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 language. So I have over 5000 member data both in russian & japanese. Now my russian member profile page is showing junk characters. if I change the encoding to cyrillic(window-1251) then russian character are ok, but japanese characters get junked. I...
0
9257
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9116
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8099
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3228
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.