We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9020eee commit 1a589e6Copy full SHA for 1a589e6
sources/net.sf.j2s.java.core/src/java/io/OutputStreamWriter.java
@@ -109,7 +109,12 @@ public class OutputStreamWriter extends Writer {
109
public OutputStreamWriter(OutputStream out, String charsetName) throws UnsupportedEncodingException {
110
super(out);
111
this.stream = out;
112
- setCharset(charsetName);
+ try {
113
+ setCharset(charsetName);
114
+ } catch (UnsupportedEncodingException e) {
115
+ e.printStackTrace();
116
+ System.err.println("OutputStreamWriter: " + charsetName + " not supported (only UTF-8 in SwingJS)");
117
+ }
118
119
// se = StreamEncoder.forOutputStreamWriter(out, this, charsetName);
120
}
0 commit comments