Android Studio-数据库文件加载的编码错误:"UTF-8" [英] Android Studio - Database file loaded in the wrong encoding: 'UTF-8'

查看:512
本文介绍了Android Studio-数据库文件加载的编码错误:"UTF-8"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

又是我.

我知道关于此问题有两个类似的问题,但是两个问题都没有得到任何明确的解决方案.我也尝试了上述解决方案,但没有一个解决了我的问题.

I know there are two similar questions asked about this issue, but both questions did not receive any explicit solutions. I have also tried the solutions mentioned but none solved mine.

我的问题是我已经创建了一个数据库(使用SQLite的DB Browser).当我将db粘贴到资产>数据库文件夹中时,出现了错误.请参阅随附的图片/链接以获取参考.

My issue is that I have a database created (using DB Browser for SQLite). When I pasted the db in the assets > databases folder, the error appeared. See attached pic/link for reference.

数据库错误:

我尝试过的解决方案:

  1. 单击以其他编码重新加载"选项,并仍然按照此处提到的一种解决方案中的说明在UTF-8上进行选择().

为所有编码设置UTF-8-IDE,Project&如此处所述( Android Studio项目编码错误).

Set UTF-8 for all encoding - IDE, Project & Default, as stated here (Android Studio Project Encoding Error).

上述解决方案均不适用于我的.

None of the above-mentioned solutions worked for mine.

这样,我想知道是否可以使用其他替代解决方案来解决此问题?还是我应该重新加载到另一种编码类型? (但是大多数选项也显示了红色/灰色感叹号.)确实需要帮助.

As such, I'd like to know if there are other alternative solutions I can use to solve this problem? Or should I just reload to another type of encoding? (but most of the options showed the red/grey exclamation mark too.) Really in need of help.

非常感谢!

推荐答案

我通过什么也没有解决.

如果其他任何人遇到此问题,则可以继续进行开发,而忽略不太可能出现的错误.它将不会影响您将来的发展.

If anyone else experience this problem, you may just continue on with your development and ignore the not-so error. It will not affect your development in the future.

这篇关于Android Studio-数据库文件加载的编码错误:"UTF-8"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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