PC Review


Reply
Thread Tools Rate Thread

Accented characters

 
 
gsauns
Guest
Posts: n/a
 
      27th Sep 2007
I have an ASP.NET app in which I import from a comma-delimited text
file, put all that data in a GridView, and then insert the records
into multiple related tables in my SQL Server database.

I got one text file which contains accented characters. When I bring
them into the GridView, the accented characters show up as boxes, the
universal unrecognized character. And since I am inserting into the DB
by iterating thru the rows of the GridView, those records do not get
inserted correctly.

I tried some UTF-8 tricks I found on the net, but to no avail. Can
anyone point me in the right direction?

 
Reply With Quote
 
 
 
 
Samuel R. Neff
Guest
Posts: n/a
 
      27th Sep 2007

How are you reading the csv file? Do you know at which point the
characters are getting mixed up.

If you're using oledb to read the csv file I would suggest this csv
reader instead--it's 100% .NET and may handle extended characters
better.

http://www.codeproject.com/cs/database/CsvReader.asp

HTH,

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.


On Wed, 26 Sep 2007 16:21:20 -0700, gsauns <(E-Mail Removed)> wrote:

>I have an ASP.NET app in which I import from a comma-delimited text
>file, put all that data in a GridView, and then insert the records
>into multiple related tables in my SQL Server database.
>
>I got one text file which contains accented characters. When I bring
>them into the GridView, the accented characters show up as boxes, the
>universal unrecognized character. And since I am inserting into the DB
>by iterating thru the rows of the GridView, those records do not get
>inserted correctly.
>
>I tried some UTF-8 tricks I found on the net, but to no avail. Can
>anyone point me in the right direction?


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accented characters in AD Nikhilesh Joshi Microsoft Windows 2000 Active Directory 0 27th Mar 2004 11:38 AM
Accented Characters Bion Microsoft Windows 2000 New Users 1 19th Dec 2003 03:19 PM
accented characters joe macdonnagh Windows XP Customization 0 2nd Oct 2003 11:26 AM
accented characters joe macdonnagh Windows XP Customization 0 2nd Oct 2003 11:15 AM
Accented characters in xp Joe macdonnagh Windows XP General 6 1st Oct 2003 10:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:31 PM.