Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect encoding tag on JRuby #202

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

Incorrect encoding tag on JRuby #202

Quintus opened this issue Feb 22, 2013 · 1 comment

Comments

@Quintus
Copy link

Quintus commented Feb 22, 2013

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
Copy link
Collaborator

robin850 commented Apr 7, 2013

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

@robin850 robin850 closed this as completed Apr 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants