.NETGURU
ASP.NET can't read UTF-8 Data from Database properly
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngbeta' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Anski

Hi,

I am trying to read data from an Oracle Database using ASP.NET and C#.
The data is text in many different languages
(like Japanese, Russian etc.). The encoding is UTF-8.
Using "old" ASP everything works fine, but when using ASP.NET it seems
to try to read the data as unicode and screws it all up.

Is there a possibility to access the data in binary form, before it gets
screwed up? Or can I tell the system not to do anything to the data
in the DataSet?

I've tried all possible modifications in the config.web file and I don't
have an Oracle driver that supports unicode. I've also tried the
UTF8Encoding and the UnicodeEncoding classes...nothing works, because
the Data is screwed up before I can get a hand on it.

Thanks,

Anski

Reply to this message...
 
    
Thomas Tomiczek (VIP)
Sorry to say, but this question is better asked in aspngdata - you try
to make it look like your problem is related to ASP.NET, but it's an
ADO.NET data access problem.

I would be very interested in the answer, too, but this is the wrong
mailing list, and Charles cares a lot about this.

Regards

Thomas Tomiczek
THONA Consulting Ltd.

-----Original Message-----
From: Anski [mailto:Click here to reveal e-mail address]=20
Sent: Samstag, 5. Mai 2001 12:15
To: aspngbeta
Subject: [aspngbeta] ASP.NET can't read UTF-8 Data from Database
properly

Hi,

I am trying to read data from an Oracle Database using ASP.NET and C#.
The data is text in many different languages
(like Japanese, Russian etc.). The encoding is UTF-8.
Using "old" ASP everything works fine, but when using ASP.NET it seems
to try to read the data as unicode and screws it all up.

Is there a possibility to access the data in binary form, before it gets
screwed up? Or can I tell the system not to do anything to the data
in the DataSet?

I've tried all possible modifications in the config.web file and I don't
have an Oracle driver that supports unicode. I've also tried the
UTF8Encoding and the UnicodeEncoding classes...nothing works, because
the Data is screwed up before I can get a hand on it.

Thanks,

Anski =20

| [aspngbeta] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngbeta.asp =3D JOIN/QUIT

Reply to this message...
 
 
System.Data.DataSet
System.Text.UnicodeEncoding
System.Text.UTF8Encoding




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification