• Separator
  • How it Works
    
    /**
     *
     * @param {*} string
     * @param {*} separator
     */
    export function convertHexToString(str, separator) {
      // converts  0x00210x25130x00200x20a20xfffd0x006b0x006b0x006b0x003f  and returns !┓ ₢�kkk?
      let j;
      let hexes;
      if (separator) {
        hexes = str.split(separator);
      } else {
        hexes = str.match(/.{1,4}/g) || [];
      }
      let parsedOutput = "";
      for (j = 0; j < hexes.length; j++) {
        parsedOutput += String.fromCharCode(parseInt(hexes[j], 16));
      }
    
      return parsedOutput;
    }
    
  • 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