Giter Site home page Giter Site logo

Comments (3)

xinleibird avatar xinleibird commented on June 25, 2024

I have a same error with chinese language heading.
For example, wen i used

# 中文

or

中文
====

or other heading

That the page became white.

Wrong messages:


echo "# 中文" | ./github-flavored-markdown.rb
/usr/lib/ruby/1.9.1/rexml/source.rb:162:in `initialize': incompatible character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError)
    from /usr/lib/ruby/1.9.1/rexml/source.rb:17:in `new'
    from /usr/lib/ruby/1.9.1/rexml/source.rb:17:in `create_from'
    from /usr/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:139:in `stream='
    from /usr/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:116:in `initialize'
    from /usr/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:9:in `new'
    from /usr/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:9:in `initialize'
    from /usr/lib/ruby/1.9.1/rexml/document.rb:243:in `new'
    from /usr/lib/ruby/1.9.1/rexml/document.rb:243:in `build'
    from /usr/lib/ruby/1.9.1/rexml/document.rb:43:in `initialize'
    from ./github-flavored-markdown.rb:62:in `new'
    from ./github-flavored-markdown.rb:62:in `header'
    from ./github-flavored-markdown.rb:99:in `render'
    from ./github-flavored-markdown.rb:99:in `fromMarkdown'
    from ./github-flavored-markdown.rb:103:in `<main>'

from vim-instant-markdown.

suan avatar suan commented on June 25, 2024

Hmmmm, when I do echo "# 中文" | ./github-flavored-markdown.rb it actually works - I've tried it in both Ruby 1.8.7 and 2.0. Maybe try upgrading to the latest versions of things? Also, maybe something is causing your Ruby default encoding to not be UTF-8?

from vim-instant-markdown.

xinleibird avatar xinleibird commented on June 25, 2024

When i update rbenv and rebuild ruby, it's works so fine. Thanks for your help!

发自我的小米手机

suan [email protected]编写:

Hmmmm, when I do echo "# 中文" | ./github-flavored-markdown.rb it actually works - I've tried it in both Ruby 1.8.7 and 2.0. Maybe try upgrading to the latest versions of things? Also, maybe something is causing your Ruby default encoding to not be UTF-8?


Reply to this email directly or view it on GitHub.

from vim-instant-markdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.