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

Character encoding gets lost when running under Ruby 1.9 #1

Closed
lpar opened this issue May 2, 2012 · 2 comments
Closed

Character encoding gets lost when running under Ruby 1.9 #1

lpar opened this issue May 2, 2012 · 2 comments

Comments

@lpar
Copy link

lpar commented May 2, 2012

Demonstration code:

# encoding: UTF-8

require 'multimarkdown'

test = "Écouté bien!"
html = MultiMarkdown.new(test, :smart).to_html

puts test.encoding.name
puts test

puts html.encoding.name
puts html

Ideally it would provide the output string in whatever encoding it provides the string's contents in, which looks like it's the same encoding as the input string.

@abartov
Copy link

abartov commented May 19, 2012

I'm encountering the same issue. to_html always returns 8-bit ASCII, despite UTF8 input.

@oawhyte
Copy link
Owner

oawhyte commented Aug 17, 2014

Fixed in fb2ef24

@oawhyte oawhyte closed this as completed Aug 17, 2014
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

3 participants