H
happierbee
Hello,
I am planning to write a hexlize program that can handle multiple
encodings. A problem is that I want use function `read' to read seveal
characters after decoding. If input is a file, function `open' can use
encoding in module Encode to decode the input file. But is input is a
file handle, STDIN, how to decode it if I don't want to decode it line
by line? More important, utf-16 can't decode line by line.
Thank you for advice!
I am planning to write a hexlize program that can handle multiple
encodings. A problem is that I want use function `read' to read seveal
characters after decoding. If input is a file, function `open' can use
encoding in module Encode to decode the input file. But is input is a
file handle, STDIN, how to decode it if I don't want to decode it line
by line? More important, utf-16 can't decode line by line.
Thank you for advice!