Jump to content
JusJJ

Wrong hex code

Recommended Posts

I try to receive hex data from serial port using AsyncPro. However, 0x80 returns 0x20AC. How to fix this?

Share this post


Link to post

Probably you are reading binary data as Unicode string.

x80 is euro symbol in ANSI/Windows-1252.

0x20AC is also euro symbol in Unicode.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×