I develop with Eclipse and I want to embed the JRuby scripting engine in
application. I have an issue with accented characters and JRuby.
I initialize my engine like this:
ScriptEngineManager m = new ScriptEngineManager();
ScriptEngine rubyEngine = m.getEngineByName(“jruby”);
ScriptContext context = rubyEngine.getContext();
Then I try something really simple:
context.setAttribute(“label”, “Ã bientÃ´t”, ScriptContext.ENGINE_SCOPE);
Then when I do puts $label
I get this:
I read everywhere that JRuby uses UTF-8 so why does it output my String
Is there something special I should do?
Anybody can help me?
View this message in context:
Sent from the JRuby - User mailing list archive at Nabble.com.
To unsubscribe from this list, please visit: