Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Non standard characters breaks dataset

 
Thread Tools Search this Thread
Old 11-28-2006, 03:38 PM   #1
Default 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!



DaBrain
  Reply With Quote
Old 11-28-2006, 04:39 PM   #2
Michael Lang
 
Posts: n/a
Default Re: Non standard characters breaks dataset
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" <> wrote in message
news: 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!
>





Michael Lang
  Reply With Quote
Old 11-28-2006, 05:53 PM   #3
DaBrain
 
Posts: n/a
Default Re: Non standard characters breaks dataset
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!




DaBrain
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sony, Toshiba join forces for next-generation DVD standard Radeon350@yahoo.com DVD Video 30 05-04-2005 09:15 AM
High Definition and the future of viewing. Allan DVD Video 3 03-09-2005 12:56 AM
Max number of characters in a filename webzila A+ Certification 1 07-21-2004 03:44 PM
New DVD standard gains support. Allan DVD Video 0 01-18-2004 08:20 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46