Hi fellows,
An application of mine should convert a text file to a special format.
The text file is an original Word-document, which the user should open with MS-Word and then save it as a plain text file, before running my app.
MS-Word gives 2 possibilities: save as text or save as DOS-text. The latter filter obviously uses CharToOem internally, in order to replace Ansi-characters with the Oem-characterset.
My question: can my app. recognize which characterset the text file does contain? In case it is Ansi, my app. should call CharToOem initially, otherwise this step should absolutely be skipped.
Thanks
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
[This message has been edited by Egbert Zijlema (edited October 08, 2001).]
An application of mine should convert a text file to a special format.
The text file is an original Word-document, which the user should open with MS-Word and then save it as a plain text file, before running my app.
MS-Word gives 2 possibilities: save as text or save as DOS-text. The latter filter obviously uses CharToOem internally, in order to replace Ansi-characters with the Oem-characterset.
My question: can my app. recognize which characterset the text file does contain? In case it is Ansi, my app. should call CharToOem initially, otherwise this step should absolutely be skipped.
Thanks
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
[This message has been edited by Egbert Zijlema (edited October 08, 2001).]
Comment