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!
 
What encoding is Encoding.Default ?
 
Back
Top