I need to convert an array of bytes to a string, but without using Unicode. Just ASCII (base 10 maybe).. so how can I do this? Here's my code, but this spits out a string of unicode characters representing the array, instead of the raw ASCII characters I need.
VB Code:
Public Shared Function ConvertHashToAscii(ByVal hash() As Byte) As String Dim sb As New StringBuilder Dim number As Byte For Each number In hash sb.Append(Convert.ToChar(number)) Next Return sb.ToString End Function
Any help, as always, is greatly appreciated.
Thanks,
KT




Reply With Quote