Solved

How to convert encoding characters?

Posted on 2009-04-01
2
244 Views
Last Modified: 2012-05-06
I populate a DataSet from an Access file. The problem is that in my Access database, I have a different encoding with characters like:



¾

Notice that the quotes are not the same as the usual ' or ". How can I convert my characters to a UTF-8 set while preserving the data? In the example above, I would want to replace with these:

'
"
3/4

How can I do this in a good way so I do not loose or miss characters?
0
Comment
Question by:bemara57
2 Comments
 
LVL 7

Accepted Solution

by:
vbwizardry earned 500 total points
ID: 24046129
If you know the source encoding then it is simply applying right encoding sequence to you data.
May be this will help :) http://blogs.msdn.com/cosmin/archive/2008/12/26/utf-8-strings-in-c.aspx
0
 
LVL 3

Expert Comment

by:coagantus
ID: 24046943
use

Encoding.Default
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question