473,473 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Non standard characters breaks dataset

Many thanks for any replies in advance...

When retrieving a Dataset if there are ANY non standard characters in
the data (ms word style quotes "for example"), they are returned
all screwed up. I must be doing something wrong here as the Dataset is
too powerful and the ?text data type too useful for this to a real
problem, what am I missing?
Again, thanks for any replies!

Nov 28 '06 #1
2 1016
Retrieving a dataset... how? from where ?

Some examples might have helped get your problem solved.

It could be a few things maybe they've been HTMLEncoded... Try using
System.Web.HttpServerUtility.HtmlDecode(String)

It might be to do with the character set you're using on either end of this
request. I'd be doing some reading and playing around with the System.Text
namespace.

If you don't work it out make sure you post some code and examples in your
next post.

Michael
http://www.mblmsoftware.com

"DaBrain" <Ta**********@gmail.comwrote in message
news:11**********************@45g2000cws.googlegro ups.com...
Many thanks for any replies in advance...

When retrieving a Dataset if there are ANY non standard characters in
the data (ms word style quotes "for example"), they are returned
all screwed up. I must be doing something wrong here as the Dataset is
too powerful and the ?text data type too useful for this to a real
problem, what am I missing?
Again, thanks for any replies!

Nov 28 '06 #2
OK here is the code, again the problem is any special chars in the
dataset come back all messed up when i try to display them on the web
page, The data is fine, in fact this same code dispalys the data fine
in text box when bound in a windows Forms, but the data comes back as
follows on the web,

It's hard to see
comes out as
it’s hard to see

This is from the ' that MS word uses, as it is not a real '

string connString =
ConfigurationManager.ConnectionStrings["myconn"].ConnectionString;
using (SqlConnection LocalConnection = new
SqlConnection(connString))
{

LocalConnection.Open();

string strsql = "SELECT * FROM MyData ";

try
{
SqlDataAdapter da = new SqlDataAdapter(strsql,
LocalConnection);
DataSet ds = new DataSet();
da.Fill(ds," MyData ");

return ds;
}
catch (Exception ex)
{
return null; //for now
}
finally
{
LocalConnection.Close();
}


DaBrain wrote:
Many thanks for any replies in advance...

When retrieving a Dataset if there are ANY non standard characters in
the data (ms word style quotes "for example"), they are returned
all screwed up. I must be doing something wrong here as the Dataset is
too powerful and the ?text data type too useful for this to a real
problem, what am I missing?
Again, thanks for any replies!
Nov 28 '06 #3

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

Similar topics

16
by: Luis P. Mendes | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I only know a little bit of xml and I'm trying to parse a xml document in order to save its elements in a file (dictionaries inside a list)....
2
by: Greg Ferris | last post by:
I have read a number of posts with techniques for limiting the max number of characters entered into a textarea, but I'm looking for some advice on how to limit the number of rows and the number of...
6
by: mike | last post by:
I have created a side application in VB.NET which reads rows from a DB and builds an email message. when i have a long string the the mailmessage.body or the mailmessage, it puts in an...
7
by: u260044 | last post by:
I have a problem where the French translation for "side" gets converted incorrectly into a datatable from XML. Note: The total XML is at the bottom of the message to keep from distracting from...
16
by: Vadim Biktashev | last post by:
Hello all I would like to give a certain name to a certain global variable. Unfortunately, this name is already used in math.h for a mathematical function. Worse, I do need to use maths library...
3
by: Mohammad-Reza | last post by:
We are writing an application for a specific culture(Arabic or Farsi). This application involves using DataAdapter, OLEDB Connection and the DataSet. We didn't use the .NET data binding, just field...
1
by: Siegfried Glaser | last post by:
Hello everybody! I recently wrote a VB.Net webservice that retrieves some survey data from an oracle server and returns it as a strongly typed dataset. For some weeks everything worked fine but...
7
by: Trac Bannon | last post by:
When I load XML from a file into a dotNet XMLDataDocument, the UTF-8 codes are resolved but the 5 special XML entities are not. How can I force those 5 special character types to be translated?
10
by: igor.kulkin | last post by:
I have a small utility program written in Python which works pretty slow so I've decided to implement it in C. I did some benchmarking of Python's code performance. One of the parts of the program...
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
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...
1
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
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.