웹 페이지 meta 태그 한글 깨짐 외계어 해결
const text = "한글";
const encoder = new TextEncoder();
const decoder = new TextDecoder("windows-1252");
const encodedText = encoder.encode(text);
const output = decoder.decode(encodedText);
console.log(output); //한글
'JAVASCRIPT' 카테고리의 다른 글
최종 프로젝트 종료와 코드 리뷰 회고 (0) | 2023.09.19 |
---|---|
브이월드 2D데이터 api react nextjs 사용법 (0) | 2023.05.04 |
Next.js 13.2 시작하기 (Approuter) (0) | 2023.03.07 |
firebase web version 8에서 회원가입, 인증 구현하기. (0) | 2023.01.03 |
Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null. 해결법 (0) | 2022.12.24 |