I unload [Russian-language] data in Excel (.xls format) from a tablet on Android. Part of the data is written in the code, part is taken from SQLite. When you open the file: in Linux (Libreoffice) - with encoding everything is fine; in Windows 7 (MS Excel) - solid krakozyabry of the type Заказ №
Online decoders with UTF8 tips -> CP-1251 and subsequent conversions in the type code
new String(text.getBytes("windows-1251"),"utf-8") they did not help (it turned out only worse than пїЅпїЅпїЅпїЅпїЅпї ).
(There were also attempts to translate this way from some existing encodings to others and vice versa, but in Windows any of them is still displayed as krakozyabrami). Where am I doing something wrong?
StringBuilder orderInfo = new StringBuilder(); orderInfo.append("Заказ ...."); .....StringBuilder orderInfo = new StringBuilder(); orderInfo.append("Заказ ...."); .....StringBuilder orderInfo = new StringBuilder(); orderInfo.append("Заказ ...."); .....then this orderInfo is then entered into the file. The database file itself is created on another side. Judging by the discovery in the test editor, there is still UTF-8 (only in it are normal letters). Although when writing to xls, the encoding of the letters is the same, which is directly from string, that the data from the database is written. - Yoko999