将 csv 导入 mysql 和 sqlite 时换行

Line break when importing csv to mysql and sqlite

我正在将 CSV 数据导入 MySQL(使用 000webhost)和 SQLite。我的数据库中有这样的换行符数据:

My first line.\nMy second line.

它应该像这样打印出来:

My first line. My second line.

我正在开发 Android 应用程序来显示结果。我从数据库进入 TextView,显示的数据用 \n 显示:

My first line.\nMy second line.

它不应该转义 \n 并将其打印为换行符吗??

要换行,使用换行符:

IDCol,TextCol
1,hello
2,"My first line.
My second line."

(CSV 格式没有很好地指定;并非所有程序都能够正确导入它。)