473,516 Members | 3,488 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

text encoding problem in GridView .Net 2.0

Hi guys!
i've got very interesting problem. the problem is like this.

i've 2 webpages.

-- page1 contains DataGrid control of .Net 1.1 and
-- Page2 contains GridView control of .Net 2.0.
-- both grid displays same data and same function is used to fetch data
from the database.

the grid on Page1 displays data correctly but i've got problem with the
grid of Page2.
in one column which shows NVARCHAR data,
the data shown on Page1 is like this

abæcdøefå

and the same text is diaplyed differently on Page2 Grid like this,

abæcdøefå

it seems problem with encoding but i'm not able to find out how to fix
this.

i'm using C#.NET 2.0 and MS SQL SERVER 2000

can anyone help me out here? i would appriciate it.

Thanks,
Lucky

Sep 27 '06 #1
2 1661
hi guys!
again me. i found the problem. it wasn't with the GridView. so do not
bother about this.

Lucky

Lucky wrote:
Hi guys!
i've got very interesting problem. the problem is like this.

i've 2 webpages.

-- page1 contains DataGrid control of .Net 1.1 and
-- Page2 contains GridView control of .Net 2.0.
-- both grid displays same data and same function is used to fetch data
from the database.

the grid on Page1 displays data correctly but i've got problem with the
grid of Page2.
in one column which shows NVARCHAR data,
the data shown on Page1 is like this

abæcdøefå

and the same text is diaplyed differently on Page2 Grid like this,

abæcdøefå

it seems problem with encoding but i'm not able to find out how to fix
this.

i'm using C#.NET 2.0 and MS SQL SERVER 2000

can anyone help me out here? i would appriciate it.

Thanks,
Lucky
Sep 27 '06 #2
hi guys!
again me. i found the problem. it wasn't with the GridView. so do not
bother about this.

Lucky

Lucky wrote:
Hi guys!
i've got very interesting problem. the problem is like this.

i've 2 webpages.

-- page1 contains DataGrid control of .Net 1.1 and
-- Page2 contains GridView control of .Net 2.0.
-- both grid displays same data and same function is used to fetch data
from the database.

the grid on Page1 displays data correctly but i've got problem with the
grid of Page2.
in one column which shows NVARCHAR data,
the data shown on Page1 is like this

abæcdøefå

and the same text is diaplyed differently on Page2 Grid like this,

abæcdøefå

it seems problem with encoding but i'm not able to find out how to fix
this.

i'm using C#.NET 2.0 and MS SQL SERVER 2000

can anyone help me out here? i would appriciate it.

Thanks,
Lucky
Sep 27 '06 #3

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

Similar topics

6
1556
by: quincy | last post by:
I need help. Please bear with this. I have a program. It takes in files that are delimited. The delimiters are declared in the file by looking at fixed positions in the file (If you work with ANSI x12 files, you know what I mean). This normally isn't a problem, but I'm getting a file that is using some odd characters as delimiters. ...
2
395
by: Mark | last post by:
Sorry about the last... Anyway, here's the question: I've been working on some C# routines to process strings in and out of various encodings. The hope is that I can just let the user type in the encoding they want and I'll do a pretty good job of converting. Basically, I take a string as input, write it to a byte array MemoryStream and then...
3
5860
by: xmlguy | last post by:
XmlTextReader myXmlReader = new XmlTextReader(args); string en = myXmlReader.Encoding.EncodingName; //Console.WriteLine(x); Error: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
4
11490
by: H Lee | last post by:
Hi, I'm an XML newbie, and not sure if this is the appropriate newsgroup to post my question, so feel free to suggest other newgroups where I should post this message if this is the case. I'm having issues using XmlTextWriter, saving it out to a file with UTF8 encoding, and seeing "dirty", or "human unreadable" characters show up *right...
3
2416
by: Claire | last post by:
Does anyone know of a link to a detailed reference on the different types of text encoding supported by .net please. I'm having trouble trying to discover the differences (yes Ive googled but am I using the best search string?) . In the mean time, on a handheld the text is stored as single byte text (don't ask me if its ansi or ascii). Which...
4
6690
by: I.Charitopoulos | last post by:
The reason I want to do so, is that I am sending to DOS and I am pretty certain that it will not work. Everything I've tried so far hasnt. In my test environment (Windows to Windows) this works perfectly, but not when sending to DOS: Private Function bytearray2string(ByVal input As Byte()) As String Dim output As String
3
6751
by: Ville Pirhonen | last post by:
is there easy way encode ISO-8859-1 (7-bit) to unicode? example.. =?iso-8859-1?Q?=F6=E4?= to öä I tried Dim iso8859 As System.Text.Encoding = System.Text.Encoding.GetEncoding("ISO-8859-1") and getDecoder, but I didn't manage to get it work...
4
34100
by: George | last post by:
Hi, I am puzzled by the following and seeking some assistance to help me understand what happened. I have very limited encoding knowledge. Our SAP system writes out a text file which includes German characters. 1. When I use StreamReader(System.String filepath) without specifying an encoding method, the German characters such as Ä are...
4
2028
by: A_StClaire_ | last post by:
hi, I am using the following code to download multiple file types from a server. .txt files transfer fine. however Word .doc files come through garbled and I don't know enough about encoding to understand why. the object 's' is a Mentalis.org component that, for all purposes here, is a System.Net.Socket. the line I commented out is...
0
1211
by: Marshall | last post by:
Hi In this code everything works fine without any errors, when i edit the row it goes well, but when i change the text in the textbox and press update it still shows the same in gridview row. it doesn't update the latest modified text into GridView. Can u please help me...i was struck here from many days. Here is my code... Design: ...
0
7182
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7405
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7574
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...
1
7136
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7547
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...
0
5712
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...
1
5106
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...
1
823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
487
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...

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.