in reply to perl pack function
But perhaps this isn't really the contents of $msg. Perhaps it is only converted to UTF8 when you print it out to a file. In which case, perl thinks that's what you want. Perhaps tell it that the filehandle should be treated as raw, hence, no conversion of any characters? binmode could offer you a solution, then.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl pack function
by fvgestel (Initiate) on Oct 26, 2005 at 13:38 UTC |