Skip to content

Instantly share code, notes, and snippets.

@QuatoHub
Created November 25, 2021 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save QuatoHub/f62106e5b1624089017edc22c28d4cb4 to your computer and use it in GitHub Desktop.
Save QuatoHub/f62106e5b1624089017edc22c28d4cb4 to your computer and use it in GitHub Desktop.
let encoder = new TextEncoder(); // 기본 인코딩은 'utf-8'
encoder.encode('코') // Uint8Array(3) [236, 189, 148]
(236).toString(2) // "11101100"
(189).toString(2) // "10111101"
(148).toString(2) // "10010100"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment