If you want to use .NET you can do
System.Text.Encoding.ASCII.GetString(bytes) (Unicode, etc works too)

On 8/28/06, Gary Stephenson <[EMAIL PROTECTED]> wrote:
> What is the best way to convert a Byte[] to a string?
>
> The best I've been able to come up with is
>
>     "".join( [chr(x) for x in bytearr] )
>
> but I just know there are better ways than that - surely ..
>
> thanks in advance,
>
> gary
>
>
> _______________________________________________
> users mailing list
> users@lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to