[fpc-pascal] charset conversion

Lukas Gebauer gebylist at mlp.cz
Thu Dec 7 18:28:04 CET 2006

> 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: gebauerl at mlp.cz
WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP 

More information about the fpc-pascal mailing list