Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to convert numbers into UNICODE encoding?
How to convert numbers into UNICODE encoding?
C language, according to the size of variables, converts numbers into UNICODE array 0. UNICODE is: 0030, and UNICODE of 1 is: 003 1. The UNICODE of 2 is: 0032 ... if the variable is: 1234, the generated UNICODE should be: array [] = "0031003200330034" if the variable is: 5678, The generated UNICODE should be: array[] = "0035003600370038 "If the variable is: 34, the generated UNICODE should be: array[] = "00300034" If the variable is: 4, the generated UNICODE, I think we all understand that this variable has a maximum of 4 digits and a minimum of 1 bit. The array to be generated must be a string array, which can automatically convert numbers into strings according to the size of variables, and automatically adjust its length according to the size of variables.