vendredi 29 avril 2016

Incorrect value after conversion

This is in reference to the thread http://ift.tt/1SNdoTg
I have a stringbuilder initialized with same value
If i ceck (example) the value to thirteenth position

Code:
  Asc(buffer_st.ToString.SubString2(12,13))  
the value is correct = 193 (0xc1)
but after conversion into buffer (byte)
Code:
  Dim b() As Byte
If buffer_st.Length = 0 Then Return
b = conv.StringToBytes(buffer_st,
"UTF8")
the value to thirteenth position is -61...

Incorrect value after conversion

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1O2cZYX
via IFTTT

Aucun commentaire:

Enregistrer un commentaire