iOS Question Error decoding data as string

D

Deleted member 103

Guest
Hi,

can someone tell me why the function "BytesToString" can not decode the byte "9d"?
Thank you in advance.

ble_01.PNG

ble_02.PNG

Log-File:
 
D

Deleted member 103

Guest
Is the data actually a string encoded with that encoding?
This is the first string I get when connecting to a BLE module (AT-09 !!!Android IOS BLE 4.0 Bluetooth module) from Aliexpress.
For all the others that I have used to date, decoding with "Windows-1252" has worked without any problems.
Now I tried to decode with "iso-8859-1" and it works fine.

Never treat raw bytes as string. Use BytesBuilder instead.
Do you think that's better?
 
Upvote 0