Incorrect encoding tag on JRuby #202

Closed
Quintus opened this Issue Feb 22, 2013 · 1 comment

2 participants

@Quintus

Hi there,

Redcarpet::Render::SmartyPants incorrectly tags its output always as ASCII-8BIT on JRuby. It works as expected on MRI.

MRI:

irb1.9.3p385 :001 > RUBY_DESCRIPTION
=> "ruby 1.9.3p385 (2013-02-06 revision 39114) [x86_64-linux]"
1.9.3p385 :002 > require "redcarpet"
=> true
1.9.3p385 :003 > Redcarpet::Render::SmartyPants.render("<p>Bär</p>").encoding
=> #<Encoding:UTF-8>
1.9.3p385 :004 > exit

JRuby:

jruby-1.7.2 :001 > RUBY_DESCRIPTION
=> "jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_13-b20 [linux-amd64]"
jruby-1.7.2 :002 > require "redcarpet"
=> true
jruby-1.7.2 :003 > Redcarpet::Render::SmartyPants.render("<p>Bär</p>").encoding
=> #<Encoding:ASCII-8BIT>
jruby-1.7.2 :004 > exit

Vale,
Quintus

@robin850
Collaborator

Hi @Quintus, I'm sorry but we are not supporting JRuby. 😢

@robin850 robin850 closed this Apr 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment