?
Solved

codepage convertion

Posted on 2000-02-27
1
Medium Priority
?
1,190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
philipleighs earned 150 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

777 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