![](/img/trans.png)
[英]In android studio How I import a text file and how I tokenize this file to save it in sqlite3 database?
[英]Android: How to insert subscript in the middle of the text in sqlite3 database
我从一个文本文件填充到sqlite3 db中,并且在文本中间有很多上标。 任何人都可以让我知道,我应该在我的文本文件中添加什么以使这项工作生效
在数据库中,所有TEXT字段均包含纯文本。
如果要使用格式说明,则必须以某种方式对其进行编码,例如,作为HTML:
some text <sub>with subscripts</sub> ...
或TeX:
some text \textsubscript{with subscripts} ...
这意味着您始终必须确保转义特殊字符(例如<
或\\
)。
使用哪种格式取决于您稍后使用哪种软件实际格式化文本(Android小部件通常支持HTML)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.