Solved

How to convert encoding characters?

Posted on 2009-04-01
2
245 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 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