|Think about Loose Coupling|
7bit ascii equal parity posing problemsby bear0053 (Hermit)
|on Mar 02, 2004 at 21:34 UTC||Need Help??|
bear0053 has asked for the
wisdom of the Perl Monks concerning the following question:
fellow monks i have come across a situation that baffeled me.
i have an encryption object running from win32 that returns binary data in 7 bit Ascii (verified in .NET). When perl gets the property from the object and puts the value into a scalar it converts it to binary 7 bit ascii "even" parity. when .NET applications read this data from the encryption object it is simply read in as 7 bit ascii. why is this happening and what can i do to fore it in as 7 bit ascii?
in .NET C# object returns an EOT Hex 04 in 7 bit ascii
in perl the object returns EOT Hex 84 in 7 bit ascii even parity
can it be forced to 7 bit ascii or can i convert the 7 bit ascii even parity to 7 bit ascii easily?
the convert route is not optimal for performance, the cpu is already hit from the auto conversion to 7 bit ascii even parity.
Thanks in advance