Code:
ByteArrayOutputStream smsbuf = new ByteArrayOutputStream();
OutputStreamWriter out = new OutputStreamWriter(smsbuf, Charset.forName("8859_1"));
out.write("this gets lost");
ByteArrayInputStream smsinbuf = new ByteArrayInputStream(smsbuf.toByteArray());
BufferedReader in = new BufferedReader(new InputStreamReader(smsinbuf, Charset.forName("8859_1")));
This is one of the failed attempts to check convertibility to ASCII (see my other post )
Comment