블로그 (Blog)/개발로그 (Devlogs)
win-iconv
티클러
2025. 11. 6. 14:52
https://github.com/win-iconv/win-iconv
windows api로만 이루어진 iconv 대용 프로그램.
딸랑 실행파일 하나면 있으면 되니 편함..
컴파일해서 올려봄..
보통의 경우 파일 내부의 dll은 필요없으나.. 아래의 경우 환경변수로 사용할수 있음.
ENVIRONMENT VARIABLE:
WINICONV_LIBICONV_DLL
If $WINICONV_LIBICONV_DLL is set, win_iconv uses the DLL. If
loading the DLL or iconv_open() failed, falls back to internal
conversion. If a few DLL are specified as comma separated list,
the first loadable DLL is used. The DLL should have
iconv_open(), iconv_close() and iconv(). Or libiconv_open(),
libiconv_close() and libiconv().
(only available when USE_LIBICONV_DLL is defined at compile time)
Win32 API does not support strict encoding conversion for some codepage.
And MLang function drops or replaces invalid bytes and does not return
useful error status as iconv does. This implementation cannot be used for
encoding validation purpose.
테스트..
C:\> win_iconv.exe -f utf-8 -t cp949 test.txt > test.txt