Do you know how to use iconv.dll?
Posted: Mon May 07, 2018 8:33 am
I have a question.
convert from ansi characters to UTF8
Converting from UTF8 to ANSI characters
Occasionally, unwanted broken characters stick behind.
example)
ansi-> utf8
cStr: = AnsiToWide (cStr)
cStr: = HB_TRANSLATE (cStr, "UTF16LE", "UTF8")
utf8-> ansi
cStr: = HB_TRANSLATE (cStr, "UTF8", "UTF16LE")
cStr: = WideToAnsi (cStr)
// ----------------------------------------------
So we are using iconv.exe for Windows.
This is cumbersome to open cmd.
Of course, it is automated as a .bat file.
I want to know if iconv.dll is available.
I'd appreciate it if you could tell me how to use it.
convert from ansi characters to UTF8
Converting from UTF8 to ANSI characters
Occasionally, unwanted broken characters stick behind.
example)
ansi-> utf8
cStr: = AnsiToWide (cStr)
cStr: = HB_TRANSLATE (cStr, "UTF16LE", "UTF8")
utf8-> ansi
cStr: = HB_TRANSLATE (cStr, "UTF8", "UTF16LE")
cStr: = WideToAnsi (cStr)
// ----------------------------------------------
So we are using iconv.exe for Windows.
This is cumbersome to open cmd.
Of course, it is automated as a .bat file.
I want to know if iconv.dll is available.
I'd appreciate it if you could tell me how to use it.