Windows

iconv 윈도우에서 사용 하여 euckr을 utf8로 변환하기

아이티제어 2022. 3. 11. 04:48

https://mlocati.github.io/articles/gettext-iconv-windows.html

 

gettext 0.21 and iconv 1.16 - Binaries for Windows

Download gettext & iconv binaries for Windows - 32 and 64 bits - shared and static.

mlocati.github.io

위 주소에서  32혹은 64 자신이 원하는 사양을 다운로드 설치한다.

 

iconv  다운로드 주소

 

iconv -c -f euc-kr -t utf-8 test.txt > test-utf8.txt
//컨버트  from euc-kr파일일 to utf-8현태로  test.txt파일을 변환하여  test-utf8.txt  파일로  생성하기

iconv --help 화면

C:\WINDOWS\system32>iconv --help
Usage: iconv [OPTION...] [-f ENCODING] [-t ENCODING] [INPUTFILE...]
or:    iconv -l

Converts text from one encoding to another encoding.

Options controlling the input and output format:
  -f ENCODING, --from-code=ENCODING
                              the encoding of the input
  -t ENCODING, --to-code=ENCODING
                              the encoding of the output

Options controlling conversion problems:
  -c                          discard unconvertible characters
  --unicode-subst=FORMATSTRING
                              substitution for unconvertible Unicode characters
  --byte-subst=FORMATSTRING   substitution for unconvertible bytes
  --widechar-subst=FORMATSTRING
                              substitution for unconvertible wide characters

Options controlling error output:
  -s, --silent                suppress error messages about conversion problems

Informative output:
  -l, --list                  list the supported encodings
  --help                      display this help and exit
  --version                   output version information and exit

Report bugs to <bug-gnu-libiconv@gnu.org>.

C:\WINDOWS\system32>
C:\WINDOWS\system32>
C:\WINDOWS\system32>
//사용 사례~ 
mkdir .\2022-03-09-utf8
iconv -f euc-kr -t utf-8 .\2022-03-09\ailtour.sql           > .\2022-03-09-utf8\ailtour.sql                
iconv -f euc-kr -t utf-8 .\2022-03-09\bak.sql	      		> .\2022-03-09-utf8\bak.sql	                 
iconv -f euc-kr -t utf-8 .\2022-03-09\board.sql	      		> .\2022-03-09-utf8\board.sql	                 
iconv -f euc-kr -t utf-8 .\2022-03-09\cap_hp1.sql     		> .\2022-03-09-utf8\cap_hp1.sql                
iconv -f euc-kr -t utf-8 .\2022-03-09\cap_hp2.sql     		> .\2022-03-09-utf8\cap_hp2.sql                
iconv -f euc-kr -t utf-8 .\2022-03-09\cb_prj.sql      		> .\2022-03-09-utf8\cb_prj.sql                 
iconv -f euc-kr -t utf-8 .\2022-03-09\gggr1.sql	      		> .\2022-03-09-utf8\gggr1.sql	                 
iconv -f euc-kr -t utf-8 .\2022-03-09\gggr_test.sql   		> .\2022-03-09-utf8\gggr_test.sql              
iconv -f euc-kr -t utf-8 .\2022-03-09\hmaul.sql	      		> .\2022-03-09-utf8\hmaul.sql	                 
iconv -f euc-kr -t utf-8 .\2022-03-09\host_okac.sql   		> .\2022-03-09-utf8\host_okac.sql              
iconv -f euc-kr -t utf-8 .\2022-03-09\h_0.sql	      		> .\2022-03-09-utf8\h_0.sql	                   
iconv -f euc-kr -t utf-8 .\2022-03-09\h_8.sql	      		> .\2022-03-09-utf8\h_8.sql	                 
iconv -f euc-kr -t utf-8 .\2022-03-09\h_9.sql	      		> .\2022-03-09-utf8\h_9.sql	                 
iconv -f euc-kr -t utf-8 .\2022-03-09\h_90.sql	      		> .\2022-03-09-utf8\h_90.sql	                 
iconv -f euc-kr -t utf-8 .\2022-03-09\h_s_1000.sql    		> .\2022-03-09-utf8\h_s_1000.sql               
iconv -f euc-kr -t utf-8 .\2022-03-09\h_s_1001.sql    		> .\2022-03-09-utf8\h_s_1001.sql               
iconv -f euc-kr -t utf-8 .\2022-03-09\ishome.sql      		> .\2022-03-09-utf8\ishome.sql                 
iconv -f euc-kr -t utf-8 .\2022-03-09\jdb.sql	      		> .\2022-03-09-utf8\jdb.sql	                 
iconv -f euc-kr -t utf-8 .\2022-03-09\jdb2.sql	      		> .\2022-03-09-utf8\jdb2.sql	                 
iconv -f euc-kr -t utf-8 .\2022-03-09\jdbmaster.sql   		> .\2022-03-09-utf8\jdbmaster.sql              
iconv -f euc-kr -t utf-8 .\2022-03-09\jdb_4th.sql     		> .\2022-03-09-utf8\jdb_4th.sql                
iconv -f euc-kr -t utf-8 .\2022-03-09\jdb_5th.sql     		> .\2022-03-09-utf8\jdb_5th.sql                
iconv -f euc-kr -t utf-8 .\2022-03-09\jdb_hub.sql     		> .\2022-03-09-utf8\jdb_hub.sql               
iconv -f euc-kr -t utf-8 .\2022-03-09\nh_board.sql    		> .\2022-03-09-utf8\nh_board.sql               
iconv -f euc-kr -t utf-8 .\2022-03-09\nnsms.sql	      		> .\2022-03-09-utf8\nnsms.sql	                 
iconv -f euc-kr -t utf-8 .\2022-03-09\nn_board.sql    		> .\2022-03-09-utf8\nn_board.sql              
iconv -f euc-kr -t utf-8 .\2022-03-09\z160bak.sql     		> .\2022-03-09-utf8\z160bak.sql                
iconv -f euc-kr -t utf-8 .\2022-03-09\zmsoft.sql      		> .\2022-03-09-utf8\zmsoft.sql                 
iconv -f euc-kr -t utf-8 .\2022-03-09\zmsoft_passport korea.sql	> .\2022-03-09-utf8\zmsoft_passport korea.sql  
iconv -f euc-kr -t utf-8 .\2022-03-09\zmSuik.sql      		> .\2022-03-09-utf8\zmSuik.sql                 
iconv -f euc-kr -t utf-8 .\2022-03-09\z_0.sql	      		> .\2022-03-09-utf8\z_0.sql	                 
iconv -f euc-kr -t utf-8 .\2022-03-09\z_1.sql	      		> .\2022-03-09-utf8\z_1.sql