But you should be using binmode FO, ":encoding(utf-8)". See :encoding(UTF-8) vs :encoding(utf8) vs :utf8
In reply to Re^3: Printing a UTF8 code by ikegami in thread Printing a UTF8 code by bobt_1234