开发者

C converts HEX value from emacs into the incorrect value

in a file, i have used m-x uc开发者_如何学Cs-insert to insert a hex character 9e (which in emacs shows up as \236). however, when this is read in by the C program, 9e is becoming 0x9ec2. Where is this c2 coming from and how do i get rid of it??


The unicode character U+009E is represented in UTF-8 as the bytes C2 9E (see this handy converter). It's likely that your emacs is set up to save files in UTF-8. Try loading the file in emacs with M-x find-file-literally and see if it comes out as \302\236 (octal representation of C2 9E). If so, you'll be able to delete the \302 and see if that makes the program run better.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜