error: stray '\302' in program

后端 未结 8 1121
谎友^
谎友^ 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 !!??

提交回复
热议问题