Illegal Character error: '\u200b'

后端 未结 2 1883
遇见更好的自我
遇见更好的自我 2020-12-01 16:33

I\'m making an Asteroid Field for an Asteroid Game in my Object Oriented Programming class and I am receiving an illegal character error: \'\\u200b\'. The issue seems to be

相关标签:
2条回答
  • 2020-12-01 16:35

    \u200b is a "zero-width-space" in Unicode.

    You should delete line 12 (the blank line), save the file, re-add the blank line and save again. using a simple text editor.

    If that doesn't fix it delete lines 11 and 13 as well and recreate them.

    0 讨论(0)
  • 2020-12-01 16:41

    I think the point here is to not retype the copied code. So with that in mind:

    Steps:

    1- Ctrl + r Replace (tick Regex checkbox)

    2- paste the character code: \u200b

    3- replace all with nothing

    Done!

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