On 2/3/19 1:55 AM, David Warring wrote:
Are all characters in the range 0-255, ie latin-1 characters?

You could then try: my $str =  $buf.decode("latin-1");

There's one potential  issue if your data could contain DOS end of lines ("\r\n"), which will get translated to a single logical "\n" in the decoded string.

- David

Hi David,

It has to be an exact match.  That includes all carriage returns,
line feeds, page feeds, eofs, tabs, etc..  But thank you anyway.
:-)

-T

Reply via email to