in reply to Unicode Puzzle

It appears to be UTF-16be or UCS-2be (no way to know from what you posted).

UTF-16 has two possible byte orders, so telling decode just "UTF-16" is not enough unless there's a BOM to indicate byte order.

The "padded with 00" bit probably refers to the two U+0000 at the end.

Replies are listed 'Best First'.
Re^2: Unicode Puzzle
by Skeeve (Parson) on Aug 12, 2010 at 21:49 UTC

    Many thanks, ikegami! Both (utf16be and ucs2be) seem to work. The data I have does not help me yet in deciding, which one is the "real" one.


    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e
      if you can get iconv library and associated binaries for you platform, they're good tools for unicode inspection and test/real conversion.
      the hardest line to type correctly is: stty erase ^H