Solved

codepage convertion

Posted on 2000-02-27
1
1,184 Views
Last Modified: 2008-02-26
Hello,

I have to work with files (DBF, DBT, ...) that are created with an other codepage.  Delphi can work with the files but strings with special characters (é, ë, ç, ...) are translated as garbage.  Is it possible for Delphi to find out wich codepage was used?  Is it possible to change temperally the codepage of a file so I can work with it, and change it back to the origanal after I am finished modifying the data?

All info welcome.

PS sorry for my poor English.
0
Comment
Question by:ka1a
1 Comment
 
LVL 3

Accepted Solution

by:
philipleighs earned 50 total points
ID: 2562860
You can store the strings in UniCode.

Use StringToWideChar and WideCharToString to convert between UniCode strings and Ansi/MBCS strings.

Cheers,
Phil.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

867 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now