How to decode rawBytes

437 views
Skip to first unread message

erwin solihin

unread,
Feb 5, 2021, 12:42:59 PM2/5/21
to zxing
I have qrcode with text "abc" it rawBytes is: 

40 36 16 26 30 ec 11 ec 11 ec 11 ec 11 ec 11 ec 11 ec 11 

how can I decode rawBytes  to text using Javascript/python/php ?

thanks

Sean Owen

unread,
Feb 5, 2021, 2:02:02 PM2/5/21
to zxing
You don't want to do that - just call Result.getText(). If you're in other languages, you're not using this library directly already, but, probably want to integrate with methods like getText.

erwin solihin

unread,
Feb 5, 2021, 2:27:21 PM2/5/21
to zxing
I'm using online decoder https://zxing.org/w/decode.jspx and I'm curious, why it result not hex "61 62 63"  or charcode 97,98,99

Sean Owen

unread,
Feb 8, 2021, 9:00:14 PM2/8/21
to zxing
The online decoder already provides the text result.
The raw bytes are already hexadecimal. I don't know what you mean.
Reply all
Reply to author
Forward
0 new messages