开发者

How can I catch non valid ASCII characters in Panic Coda?

开发者 https://www.devze.com 2022-12-25 05:37 出处:网络
Sometimes I get errors while coding, because of typing some combination of keys (eg. ALT + SHIFT + SQUARE BRACKET) in a w开发者_开发技巧rong way. So I get Syntax Error in Python, but I can\'t see wher

Sometimes I get errors while coding, because of typing some combination of keys (eg. ALT + SHIFT + SQUARE BRACKET) in a w开发者_开发技巧rong way. So I get Syntax Error in Python, but I can't see where the illegal character is, 'cause Coda do not show it to me. Any solution?


Python uses the 7-bit ASCII character set for program text. So all you need to do is convert your program to ASCII by going to text > convert to ASCII. Any bad characters will automatically be removed. If you want to specifically know which characters were the bad ones, you can use diff to compare changed and unchanged versions.

0

精彩评论

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

关注公众号