A Javascript code that looks like Japanese smileys: Learn how to use emojis in your web documents
- halfprofapexupic
- Aug 19, 2023
- 3 min read
Remember that JJencode method that inserts $ everywhere and makes the code absolutely unreadable from the last post? well, if you liked it, then this one is going to be a real surprise for you.The same guy who created the JJencode methode, has created also some weird method to encode Javascript, a Japenese emoticons encoded Javascript (^_^), no seriously, here is how your code will look like after encoding (enjoy :D imagine that in a real webpage):((o^_^o) +(o^_^o))+ ((o^_^o) +(o^_^o))+ (゚Д゚)[゚ε゚]+(゚Θ゚)+ (゚ー゚)+ (゚Θ゚)+ (゚Д゚)[゚ε゚]+(゚Θ゚)+ ((o^_^o) - (゚Θ゚))+ (o^_^o)+ (゚Д゚)[゚ε゚]+(゚Θ゚)+ (゚ー゚)+ (o^_^o)+ (゚Д゚)[゚ε゚]+(゚Θ゚)+ ((o^_^o) +(o^_^o))+ ((o^_^o) - (゚Θ゚))+ (゚Д゚)[゚ε゚]+(゚Θ゚)+ ((゚ー゚) + (゚Θ゚))+ (゚Θ゚)+ (゚Д゚)[゚ε゚]+(゚Θ゚)+ ((o^_^o) +(o^_^o))+ (c^_^o)+ (゚Д゚)[゚ε゚]+(゚Θ゚)+ ((o^_^o) +(o^_^o))+ (゚ー゚)+ (゚Д゚)[゚ε゚]+(゚ー゚)+ ((o^_^o) - (゚Θ゚))+ (゚Д゚)[゚ε゚]+((゚ー゚) + (゚Θ゚))+ (゚Θ゚)+ (゚Д゚)[゚o゚]) (゚Θ゚)) ('_');Pretty convincing right, especially the ('_') and (゚ー゚) emoticons, and yeah, that's real javascript there.To get your scripts encoded, just head to Yosuke HASEGAW's webpage here, and as usual, to know what is going on behind an encoded script like that, here's the magical part :document.write(""+ encoded_code +"");This guy absolutely rocks, I mean, do you see how this Javascript looks like (^_^).
A Javascript code that looks like Japanese smileys
However, unlike ASCII, characters 128-255 were never standardized, and various countries started using the spare slots for their own alphabets. Not everybody agreed that 224 should display α, not even the Greeks. This led to the creation of a handful of new code pages. For example, in Russian IBM computers using code page 885, 224 represents the Cyrillic letterЯ. And in Greek code page 737, it is lower case omega: ω.
If you join an Amazon Chime meeting in a browser, or on an iOS or Android machine, you use an emoji picker to add emojis to chat messages. However, if you run the Amazon Chime desktop client on a PC or Macintosh, you use emoji codes, words and characters that specify a given emoji. The codes look like this: :characters:. For example, :+1: inserts the thumbs-up emoji into a message. You can add the codes to chat messages manually, or you can copy and paste them. The emojis appear when you send a chat message during a meeting.
Use SCSU. This format compresses Unicode into 8-bit format, preserving most of ASCII, but using some of the control codes as commands for the decoder. However, while ASCII text will look like ASCII text after being encoded in SCSU, other characters may occasionally be encoded with the same byte values, making SCSU unsuitable for 8-bit channels that blindly interpret any of the bytes as ASCII characters.
UTF-16 sometimes requires two code units to represent a single character. It is therefore a variable width encoding, and just like some of the East Asian legacy character sets such as Shift-JIS (SJIS) code units alternate between two widths. People familiar with these character sets are well acquainted with the problems that variable-width codes can cause. However, there are some important differences between the mechanisms used in SJIS and UTF-16:
Every emoji is represented by a code point (a hexadecimal number, zero-padded up to at least four digits, like U+26C4).Because all JavaScript strings are internally (i.e. in browsers) represented in UTF-16, this means that each code point, in turn, can be represented by one or more 16-bit code unit. 2ff7e9595c
Comments