473,387 Members | 3,787 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MSDOS OEM to ANSI Text File codepage conversion

Hi,

i have to convert raw MSDOS-OEM-character set text files (codepage 430) to
standard windows ANSI character set for file I/O in C# (batch conversion).
Can anyone help me how this can be done?

Philip

--
esz Elektronik-Service GmbH
Dipl.-Ing. Philip M. Fleischmann
Technische Leitung - CTO
Max-Planck-Str. 16
82223 Eichenau
Phone: +49-8141-88887-39
Fax: +49-8141-88887-77
e-Mail: p.***********@esz-gmbh.de
http://www.esz-gmbh.de

Nov 15 '05 #1
1 5100
Philip M. Fleischmann <p.***********@esz-gmbh.de> wrote:
i have to convert raw MSDOS-OEM-character set text files (codepage 430) to
standard windows ANSI character set for file I/O in C# (batch conversion).
Can anyone help me how this can be done?


Have a look at http://www.pobox.com/~skeet/csharp/unicode.html

Near the bottom of the page is a program which converts a file from
UTF-8 to UCS-2, but it would be trivial to change it to go from any
other encoding to another.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Martín Marconcini | last post by:
Hello there, I'm writting (or trying to) a Console Application in C#. I has to be console. I remember back in the old days of Cobol (Unisys), Clipper and even Basic, I used to use a program...
2
by: Ziver MALHASOGLU | last post by:
Hi, I produce a text file using my windows application written with c#. -- System.Text.Encoding encOutput=null; encOutput=System.Text.Encoding.UTF8; StreamWriter sw=new...
5
by: Lenard Gunda | last post by:
hi! I have the following problem. I need to read data from a TXT file our company receives. I would use StreamReader, and process it line by line using ReadLine, however, the following problem...
4
by: Yves Royer | last post by:
Hi all, i'm currently writing an application which can read multiple formats of textfiles and converts all of those to another one and the same. One of the incoming type of textfiles are written...
10
by: Mark Rae | last post by:
Hi, I'm in the process if converting the data out of an old DOS-based SunAccounts system (don't ask!) into SQL Server. The data has been sent to me as a collection of hundreds of SunAccounts...
4
by: George | last post by:
Hi, I am puzzled by the following and seeking some assistance to help me understand what happened. I have very limited encoding knowledge. Our SAP system writes out a text file which includes...
6
by: msdnuniv | last post by:
Hello everybody, since days i try to convert Unicode-Strings in VB.NET to ANSI which should be processable in VB6 and converted to unicode again. It should be possible with any codepage, e.g....
1
by: Markus | last post by:
Hello I try to write RTF files using text in UTF-8 encoding. Converting the text with utf8_decode() already fails on characters such as an apostrophe or an endash. Of course non-Latin-1...
4
by: =?Utf-8?B?R2lubw==?= | last post by:
I have written an application which uses a streamwriter to create which is exported to a third party system. The third party system does not appear to process the files in its original format. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.