Search code examples
node.jsencodingdecodeurlencode

Want To know the Deoding Method


I wanted to decode my PUBG name. I come to interact with this site: http://ddecode.com/hexdecoder/

It decodes as I want, but now I want to know what technique they use, so I can use it in my project.

Input :

PSYCH%C3%98%E4%B9%82JOKER

Decoded String:

PSYCHØ乂JOKER

Here Is The result Url: http://ddecode.com/hexdecoder/?results=48d3b517a922349a1838240623f6e7c3


Solution

  • You should take a look at Percent encoding, this is a way to encode stuff to be valid written in URLs. The characters after the % symbol are just the hexadecimal UTF-8 values to encode the special characters Ø乂.

    0xC3 0x98 corresponds to Ø and 0xE4 0xB9 0x82 to 乂 in UTF-8.

    By the way, since you added the encryption badge and wrote the word in your question. In this situation, we cannot speak of decryption; you might want to take a look at the difference between all that terminology (encoding and encryption, for example).