How to convert a hexadecimal asc example: 0x31 ---> 1
I wanted to write a method but purely with string manipulation too much trouble, I would like to know by post under objective-c there is no built-in functions can be used to improve the effectiveness, I hope ios heroes help Xianxie !
Reply:
Top about themselves ....
Reply:
Should be 0x31 ---- "'1 'this, right?
If it is 0x31 --- "1, subtract 0x30 not on the line?
Reply:
This you misunderstood, 0x31 -> "1" I just give an example fills a hex turn after some asc code becomes not visible characters
Reply:
Character '1 'in ASCII encoding value is 0x31.
That is, here, for example, the hexadecimal representation of the character itself is 0x31 '1 'ASCII encoded values.
char c1 = 0x31;
ASCII encoding, UTF-8 character encoding, etc.,
0xXXX, this metric.
Do not understand what you ask. "Hex convert ASC algorithm," what is meant.
Is not ask to convert a hexadecimal value between characters?
char c1 = 0x31; This conversion count?
"Some turn asc after a hexadecimal code will become non-visible character"
Because the ASCII character itself is invisible characters,,
Reply:
I actually want to seek help of a string into BCD
No comments:
Post a Comment