• Separator
  • How it Works
    
    /**
     *
     * @param {*} d
     * @param {*} separator
     */
    export function convertStringToHEX(d, separator) {
      let f = "";
      d.split("").forEach((s, i) => {
        // type "1"
        // converts !┓ ₢�kkk? and returns 0x00210x25130x00200x20a20xfffd0x006b0x006b0x006b0x003f
    
        let hexCode = "000" + s.charCodeAt(0).toString(16);
    
        f = f + separator + hexCode.slice(-4);
      });
      return f;
    }
    
  • About Unicode

    Unicode serves as a standard for computers to display character data from any language. There are many variations of the Unicode standard, including UTF-7, UTF-8, UTF-16, UCS-2, as well as Big Endian / Little Endian byte order variations.

    Traditionally, the ASCII standard used 1 byte to store 1 character, resulting in 256 combinations. Unlike the ASCII standard, Unicode character data utilizes multiple bytes per character. This increases the number of possible characters, and this may vary depending on what variation of the Unicode standard is in use.

    Unicode now replaces ASCII, ISO 8859 and EUC at all levels. It enables users to handle not only practically any script and language used on this planet, it also supports a comprehensive set of mathematical and technical symbols to simplify scientific information exchange.UTF-8 and Unicode FAQ for Unix/Linux