Im trying to get the PC437 hex for a character in Javascript.
console.log('£'.charCodeAt(0).toString(16)) // 'a3'
if i run toString(16) i get the UTF-16 code for the character which is 'a3' which is correct as per here: https://en.wikipedia.org/wiki/Code_page_437
However i need to get 'c9' for that particular character which would be the PC437 hex interpretation for the character?
from Get PC437 encoding for character
No comments:
Post a Comment