[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Reading a file with unknown encoding



On Thu, 6 Sep 2018 09:36:32 +0900 akira yamada wrote:

> How about adding "-Ebinary" to the shebang line.
[...]

Thanks for the suggestion.

Unfortunately, if I read the file in binary mode, I get what Ruby
considers strings of binary data, which cannot be transcoded to any
other encoding, if I understand correctly.
This is not what I need.


-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
..................................................... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE

Attachment: pgpJv1_Yvf6AV.pgp
Description: PGP signature


Reply to: