> On MS Windows, I found WideCharToMultiByte and MultiByteToWideChar, > which take a numerical CodePage as parameter. But I don't know how to > map a charset name ('UTF-8', 'Latin-1', 'ISO-8859-15'...) to a CodePage > (any hint ?).
Iconv exists for windows too. (called iconv.dll) I am using it in my Synapse. unit synaicnv.pas is interface for iconv.dll, and synachar.pas is unit with various charset transpation functions. You can use it on windwos or linux/unix. Delphi, kylix, Freepascal. Just download Synapse and use it. :-) (You can found iconv.dll on Synapse web page too...) -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP Library _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal