C converts HEX value from emacs to wrong value

in the file, I used m-x ucs-insert

to insert a hexadecimal character 9e

(which is displayed as in emacs \236

). however, when it is read by a C program, 9e

becomes 0x9ec2

. Where does it come from c2

and where can I get rid of it?

+2


a source to share


1 answer


The unicode character U + 009E is represented in UTF-8 as C2 9E bytes (see this handy converter ). Your emacs are probably configured to save files in UTF-8. Try loading the file into emacs with M-x find-file-literally

and see if it outputs as \302\236

(octal representation C2 9E). If so, you should be able to uninstall \302

and see if it improves program execution.



+4


a source







All Articles