データがロードされている場合
loadData(sBody, "text/html", "utf-8");
次に、すべての改行が削除されます。したがって、データには改行がありません。つまり、行区切り文字がありません。
私は試した
.loadData(URLEncoder.encode(sBody, "utf-8")
.replaceAll("\\+", "%20"), "text/plain", "utf-8");
改行があるところならどこでもスペースが見えます。読めない文字も出てくる
どうすればこの問題を解決できますか
内容はメール本文です。
以下にサンプルメールデータを示します。
Testing bug
Test
Test gaian
対応するメール本文は
testing bug (enter press ) test
(enter press )
test gaian(2enter press )