![](/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.