[jruby] Encoding error in jruby 9000

Keith Bennett keithrbennett at gmail.com
Mon Jul 20 06:07:21 JST 2015


Rodrigo -

I just did this in irb using Jruby 9.0.0.0pre1:

:003 > puts "\u0033"
3
 => nil 
 :004 > "\u0033".encoding
 => #<Encoding:UTF-8> 

Maybe I’m misunderstanding, but could you post some minimal code that illustrates your problem?

Thanks,
Keith


> On Jul 19, 2015, at 4:11 PM, Rodrigo Botafogo <rodrigo at rodrigobotafogo.com> wrote:
> 
> I´m getting the following error with jruby 9000 that works fine on jruby 1.7, when printing a String variable that is UTF-8 encoded.  Is this a bug or should I do somenting with the string in order to get it printed?
> 
> 
> Encoding::CompatibilityError: inspected result must be ASCII only or use the default external encoding
> 
> 
> -- 
> Rodrigo Botafogo
> 
> 
> 



More information about the JRuby mailing list