LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

convert hexa to ascii

Hi,

i converted this trame "444C4D535F436F6D6D616E6420313520C101C10046000060030AFF040016000A" to ASCII but i can't

 found the right conversion in which i must found a special caracter like Â,Â,¬,...

 

What is the best way to convert a hex to ascii?

 

Thx for your help. 

0 Kudos
Message 1 of 4
(4,529 Views)

ASCII encodes 128 well-defined characters in 7 bit integers, see here, the Angstrom symbol and many other symbols do not belong to this code...

 

Also, this is a forum about CVI, not about learning coding in C, so you should add some question specific to CVI Smiley Wink

 

Searching for strtol may be rewarding... Smiley Happy

 

0 Kudos
Message 2 of 4
(4,524 Views)

I have written a CVI app., which i convert this trame from hexa to ascii but only the special characters dont displayed on the terminal. So i want to khnow if the conversion of some special characters is possible or no!

 

Thx 

0 Kudos
Message 3 of 4
(4,516 Views)

If your frame encodes ASCII, then it cannot contain angstrom and other symbols. You might want to read about the complex subject of encoding. Start with "man iconv"

0 Kudos
Message 4 of 4
(4,476 Views)