Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / October 2003

Tip: Looking for answers? Try searching our database.

XML and Encoding Problems.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DelBoy - 22 Oct 2003 00:14 GMT
I'm tryin to read an XML file created by Oracle into SQL Server.

Oracle creates a file using the "WE8ISO8859P1" character set : ISO-8859-1.
I need to read the file using UTF-8.

The code I'm using to read the file is:

   objDSXML.ReadXml(sFilename)

where sFileName is the full path of the file.

I get the error : Invalid byte was found at byte index XXXX

Is there some way I can convert the file in dotNet without using the
advanced save functionality.
Need a way to convert it using code, as this has to be automatic.

Any ideas would be warmly welcomed,
thanks.
Oleg Tkachenko - 22 Oct 2003 11:42 GMT
> Oracle creates a file using the "WE8ISO8859P1" character set : ISO-8859-1.
> I need to read the file using UTF-8.

How come? If the file is ISO8859-1 encoded, it must be parsed accordingly.

> I get the error : Invalid byte was found at byte index XXXX
Sounds like your file is invalid. Check out encoding declarartion in XML
declaration. It must reflects real document encoding.

> Is there some way I can convert the file in dotNet without using the
> advanced save functionality.
> Need a way to convert it using code, as this has to be automatic.
Convert to what?
Signature

Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.