convert ANSI to UTF-8
Lionello Lunesu
lio at lunesu.remove.com
Fri Jul 7 06:41:59 PDT 2006
gertje at gertje.org wrote:
> Hello,
>
> Does anybody have or know how to write a function to convert an ANSI string to a
> UTF-8 string? I am not using windows, so I cannot rely on the functions in
> std.windows.charset, since they use the MultiByteToWideChar function from the
> windows API...
I suppose you need something like libiconv,
http://www.gnu.org/software/libiconv/
It has the mappings tables for a lot of encodings. Have never had the
'pleasure' to work with libiconv myself, but I see it's used in many
projects.
L.
More information about the Digitalmars-d
mailing list