意外令牌:错误:(40 61)错误:非法字符:\\ 8232 Android Studio中 [英] Unexpected token: Error:(40, 61) error: illegal character: \8232 in Android Studio

查看:1213
本文介绍了意外令牌:错误:(40 61)错误:非法字符:\\ 8232 Android Studio中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我复制粘贴code到Android Studio中有时(从WEB或其他外部源)我得到一些unvisible人物,我不能编译。有没有办法避免这种情况?格式化code自动?插入?更改设置?

When I copy paste code into Android Studio sometimes (from WEB or other external source) I get some unvisible characters and I can't compile. Is there a way to avoid this? Reformat code automatically? Plugin? Change settings?

Error:(40, 61) error: illegal character: \8232

到目前为止,我再次删除code任何类型它的手。

So far I delete the code any type it in by hand again.

推荐答案

我相信你的文件编码为Windows-1252(AS中右下角)?
这是一个有关文件的编码博客。我也用UTF-8的一切。
博客关于在的IntelliJ 文件编码

I believe your file encoding is windows-1252 (bottom right corner in AS)? Here is a Blog about file encoding. I also use UTF-8 for everything. Blog about file encodings in IntelliJ

由于AS被为主的IntelliJ,这也适用于AS

Since AS is IntelliJ-based, this also applies to AS.

这篇关于意外令牌:错误:(40 61)错误:非法字符:\\ 8232 Android Studio中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆