Last Updated: February 25, 2016
·
1.302K
· dieseltravis

What's the code for that Unicode character?

That's what I ask all the time while browsing. Then I select it with the mouse and click on the following bookmarklet:

javascript:top.alert("&#"+top.prompt("char?",window.getSelection()).charCodeAt(0)+";");

It will pop-up a prompt which is already populated with the value of the selection, or you can copy and paste from another source. prompt
Then it will simply alert the html code for you.alert

More about using bookmarklets: http://en.wikipedia.org/wiki/Bookmarklet

Fork the gist: https://gist.github.com/811331

1 Response
Add your response

over 1 year ago ·