Converting unicode characters to its hexadecimal form?

SineCosine

I'm still looking for my Tangent
Reaction score
77
Yea..
Let us say I have this particular character that I want to convert.
This --> ?

The hexadecimal is 2665.
But to get that, I had to look at a chart.

And to display it in certain places, I had to use \u2665 to show ?

Is there any javascript that goes like..

Code:
function Blah () {
    var string = 'This is a unicode char. ?';
 
    string = ConvertUnicodeToHex(string);
    //at this point, string should be == 'This is a unicode char \u2665'
}

Is there any javascript code that does that?
Having to look up a chart is tiring =/

[EDIT]
OMFG.
THe '?' you see is supposed to be a 'heart' symbol.

Not a question mark =/
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top