in reply to RT::Client turns occasional binary characters in to wide characters
Tried this?
use Encode qw[encode_utf8 is_utf8]; ... if(is_utf8($mystring)) { $mystring = encode_utf8($mystring); }
This should give you a string with only bytes 0x00 to 0xFF. In all likelyhood, the module you are using is treating incoming data as UTF8 and decodes that into characters.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RT::Client turns occasional binary characters in to wide characters
by Anonymous Monk on Oct 03, 2018 at 22:10 UTC | |
by wardmw (Acolyte) on Oct 08, 2018 at 15:53 UTC | |
by haukex (Archbishop) on Oct 08, 2018 at 16:13 UTC | |
|
Re^2: RT::Client turns occasional binary characters in to wide characters
by wardmw (Acolyte) on Oct 03, 2018 at 15:56 UTC | |
by Anonymous Monk on Oct 03, 2018 at 22:14 UTC |