Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Accented characters

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gsauns - 27 Sep 2007 00:21 GMT
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?
Samuel R. Neff - 27 Sep 2007 04:08 GMT
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.

>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
[quoted text clipped - 8 lines]
>I tried some UTF-8 tricks I found on the net, but to no avail. Can
>anyone point me in the right direction?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.