简体   繁体   中英

Android: How to insert subscript in the middle of the text in sqlite3 database

I am populating into sqlite3 db from a text file and i have many superscript in the middle of the text. Can anyone please let me know as what should i add in my text file, to make this work

In the database, all TEXT fields contain plain text.

If you want to have formatting instructions, you have to encode them somehow, eg, as HTML:

some text <sub>with subscripts</sub> ...

or TeX:

some text \textsubscript{with subscripts} ...

This implies that you always have to ensure to escape special characters (like < or \\ ).

What format to use depends on what software you use to actually format the text later (Android widgets typically support HTML).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM