Help for this page

Select Code to Download


  1. or download this
      // s = '1234'
      ....
      byte[] bytes = Encoding.Unicode.GetBytes(s);
      // bytes = 49, 0, 50, 0, 51, 0, 52, 0
    
  2. or download this
      my $data = encode("UTF-16LE", .....);
    
  3. or download this
      my $data = encode("UTF-16", '1234');
    
  4. or download this
      0xFE 0xFF 0x00 0x31 0x00 0x32 0x00 0x33 0x00 0x34
    
  5. or download this
      my $data = encode("UTF-16LE", '1234');
    
  6. or download this
      0x31 0x00 0x32 0x00 0x33 0x00 0x34 0x00