http://www.perlmonks.org?node_id=1054879


in reply to String to Byte array

I'd suggest using unpack.


Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^2: String to Byte array
by erictrarner (Initiate) on Oct 11, 2014 at 08:01 UTC
    Using UTF8 conversion byte[] bArray = Encoding.UTF8.GetBytes (inputString); Using ASCII conversion byte[] bArray = Encoding.ASCII.GetBytes (inputString); Full Source: http://net-informations.com/q/faq/stringtobyte.html Eric