Less/more don't display Unicode correctly

riddle

Registered
When I try to use less(1) or more(1) to display a UTF-16 Unicode text file, it breaks the 16-bit characters into two 8-bit bytes and the result is unreadable.

The file came from a Windows machine and may not be in Mac OS's preferred format for Unicode, but the file(1) command recognizes the format and cat(1) displays it correctly (almost). See attached screenshot.

Are less and more just broken when it comes to Unicode? Is there a Unicode-friendly pager I should use instead?
 

Attachments

  • less-utf16.png
    less-utf16.png
    9.4 KB · Views: 2
Back
Top