reset password
Author Message
LuisG72
Posts: 36
Posted 11:58 Feb 25, 2017 |

Converting Unicode to Characater

Having trouble trying to get code to read unicode, should the unicode be in string or just enter the integer of the unicode and go from them. Confused!

 

 

kknaur
Posts: 540
Posted 12:15 Feb 25, 2017 |

This is very simple, refer to the section on converting between char and int data types.

jgarc629
Posts: 76
Posted 22:35 Feb 25, 2017 |

is unicode supposed to be a decimal value or something like \u0041 ?  

kknaur
Posts: 540
Posted 07:47 Feb 26, 2017 |
jgarc629 wrote:

is unicode supposed to be a decimal value or something like \u0041 ?  

Take a look at an ASCII table to see examples of Unicode values.

LuisG72
Posts: 36
Posted 10:48 Feb 26, 2017 |
 

Does the coversion have to be in decimal, or hexadecimal?

kknaur
Posts: 540
Posted 10:54 Feb 26, 2017 |

Base 10 is fine.

LuisG72
Posts: 36
Posted 10:55 Feb 26, 2017 |
kknaur wrote:

Base 10 is fine.

YESSSSSSSSSSSSSSS THANK YOU

KA1997
Posts: 31
Posted 17:30 Feb 26, 2017 |

Whats base 10?