Commit 306ed35b authored by Joost Rijneveld's avatar Joost Rijneveld

Added explicit 'Big Endian' to UTF-32

parent e2fecdf9
......@@ -485,7 +485,7 @@ public class Machine
ByteBuffer b = ByteBuffer.allocate(4);
b.putInt(pop());
try {
messenger.println( "" + new String(b.array(), "UTF-32") ) ;
messenger.println( "" + new String(b.array(), "UTF-32BE") ) ;
} catch (UnsupportedEncodingException e) {
messenger.println("Error: UTF-32 encoding missing.");
}
......
......@@ -685,7 +685,7 @@ public class SSMRunner extends JFrame
}
byte[] b = {};
try {
b = s.getBytes("UTF-32");
b = s.getBytes("UTF-32BE");
} catch (UnsupportedEncodingException e) {
println("Error: UTF-32 encoding missing.");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment