error: stray '\302' in program

后端 未结 8 1107
谎友^
谎友^ 2021-01-17 16:11

I\'m using Code::Blocks on Ubuntu 10.10. I have connected a Mac keyboard and set the keyboard settings to \"Swiss German Mac\". Now whenever I write an equals sign, followed

相关标签:
8条回答
  • 2021-01-17 17:00

    I had the same issue by modified a us-ascii example file. So I convert it in utf-8, here are gnu/linux command :

    iconv -c -t us-ascii -f utf-8 source_file -o dest_file
    

    and then add my modifications… no more errors! to verify initial encoding, use

    file -i source_file
    

    I should add a non ascii character to allow iconv do the job !!??

    0 讨论(0)
  • 2021-01-17 17:02

    If you open your file in Emacs and set-buffer-file-coding-system to something like "unix" or some ascii variety, then when you try to save, it'll warn you that the buffer contains unrepresentable characters and points you to them so you can fix them.

    0 讨论(0)
提交回复
热议问题