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

Added explicit 'Big Endian' to UTF-32

parent e2fecdf9
...@@ -485,7 +485,7 @@ public class Machine ...@@ -485,7 +485,7 @@ public class Machine
ByteBuffer b = ByteBuffer.allocate(4); ByteBuffer b = ByteBuffer.allocate(4);
b.putInt(pop()); b.putInt(pop());
try { try {
messenger.println( "" + new String(b.array(), "UTF-32") ) ; messenger.println( "" + new String(b.array(), "UTF-32BE") ) ;
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
messenger.println("Error: UTF-32 encoding missing."); messenger.println("Error: UTF-32 encoding missing.");
} }
......
...@@ -685,7 +685,7 @@ public class SSMRunner extends JFrame ...@@ -685,7 +685,7 @@ public class SSMRunner extends JFrame
} }
byte[] b = {}; byte[] b = {};
try { try {
b = s.getBytes("UTF-32"); b = s.getBytes("UTF-32BE");
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
println("Error: UTF-32 encoding missing."); 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