Last active
August 3, 2023 01:32
-
-
Save suhye0n/8e1fdcfd11be34ac653c9492b8f41b85 to your computer and use it in GitHub Desktop.
axios 한글 깨짐 해결 하는 모듈
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const iconv = require('iconv-lite'); | |
const htmlContent = response.data; | |
let htmlCMD = iconv.decode(htmlContent,"EUC-KR").toString(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment