Question String conversion to Byte

Olthof

New member
Joined
Jan 20, 2009
Messages
1
Programming Experience
3-5
While converting my String to Byte I'm getting all my space characters 0x20 converted to 0x3F, which corresponds with á

I've search the web, but I didn't find anything that might help me...

I'm using te following code:

VB.NET:
Dim Msg As String = "Hello World!"
Dim sendByte() As Byte = Encoding.Default.GetBytes(Msg)

Would become:
VB.NET:
Helloáworld!

What am I doing wrong? Please help!
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,609
Location
Norway
Programming Experience
10+
What encoding is Encoding.Default ?
 

Latest posts

Top Bottom