Part of the reading looks right, I use it all the time on Linux.
I suspect that you used the default encoding somewhere when you export text to a web page. Due to the different default encoding on Linux and Windows, you saw a different result.
, , - ,
PrintWriter out = response.getWriter();
out.println(text);
UTF-8, ,
response.setContentType("text/html; charset=UTF-8");
out = new PrintWriter(
new OutputStreamWriter(response.getOutputStream(), "UTF-8"), true);
out.println(text);