Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 11th, 2004, 04:29 PM
Registered User
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unicode Characters

Hello,
im having a problem in retrieving ,inserting and updating Unicode text from database using ADO.NET. when i try to store the Unicode text in MS-SQL, the text is replaced with question marks. :(
I also tried to retrieve some Unicode text from MySQL database and show it in DataGrid. but im getting weird characters!

Do u know how to solve this?!
Thanks

 
Old April 11th, 2004, 11:41 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Is it a Windows app. & u run it in IE?!
If so its bc of browser encoding its a code to change to change coding in IE, put it before <HTML> tag.
Code:
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
HTH.

Always:),
Hovik Melkomian.
 
Old April 12th, 2004, 12:09 PM
Registered User
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

its not working!!! :(
anyone can help me pleaseeeeeeeeeeeeeeeeeeeeeeee?!

 
Old April 12th, 2004, 11:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

What Browser u r using?! in IE: use [u]View</u>-[u]Encoding</u>-[u]Unicode (UTF-8)</u>
See if it works or not?! Keep in touch.

Always:),
Hovik Melkomian.
 
Old April 13th, 2004, 01:51 AM
Registered User
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i already tried that!
its problem with ADO.NET not the browser. the ADO is not retreiving the unicode data correctly.

 
Old April 13th, 2004, 10:59 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

ADO wont change any setting, it just retrieve the data from source! Check ur MS-SQL Server Coding! But remember if u change the coding to UTF-8 in MS-SQL Server ur Data will dublicate for data space. I mean it will use twice space to save data! be aware of that!

Always:),
Hovik Melkomian.
 
Old November 7th, 2006, 04:57 AM
Registered User
 
Join Date: Nov 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rikimaruxp
Default

Try checking the datatype you used in your table. I would suggest using Nvarchar for your strings. Nvarchars can handle Unicode characters.

This posting is provided "As Is"





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to display unicode characters in datagridview usmanshakeel ASP.NET 1.x and 2.0 Application Design 0 October 19th, 2007 02:27 AM
Does MYSQL server supports Unicode characters POLITE Java Databases 0 December 25th, 2006 01:39 AM
Unicode MHS Team VB How-To 0 January 18th, 2005 12:03 PM
Help required to handle unicode characters rajeshnerenki Pro VB 6 3 July 14th, 2003 12:16 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.