Tips
Xcode에서 깨지는 코드 UTF-8로 수정하기 - 터미널에서 강제 수정
jiwon152
2023. 12. 30. 00:51
//터미널에서
brew install libiconv
after install,
iconv -f EUC-KR -t UTF-8 input.cpp > output.cpp
You cannot save if you copy & paste the modified code in output.cpp to input.cpp
-> best will be to just delete the input file and modify the filename of output.cpp
OR, BETTER, just write the comments in English...
if you wish to do the same to all the codes, you can do this
for file in *.cpp; do
iconv -f EUC-KR -t utf-8 "$file" > "converted_$file"
done