in reply to how do I check encoding before opening FILEHANDLE
Also: you can change the encoding of an open filehandle using the three-arg form of binmode.
So if you know how the algorithm to figure out the encoding, you can open in byte mode, check the data, and binmode with the appropriate encoding layer.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how do I check encoding before opening FILEHANDLE
by PodMaster (Abbot) on Feb 17, 2005 at 21:37 UTC | |
by gaal (Parson) on Feb 18, 2005 at 08:41 UTC |