GithubHelp home page GithubHelp logo

utf-8 on windows about pygments.rb HOT 4 CLOSED

pygments avatar pygments commented on June 6, 2024
utf-8 on windows

from pygments.rb.

Comments (4)

robert-hoffmann avatar robert-hoffmann commented on June 6, 2024

Tested pygments 0.5.4 on windows, here is the result

install

F:\Github\home\headjs>gem install pygments.rb
Fetching: pygments.rb-0.5.4.gem (100%)
Successfully installed pygments.rb-0.5.4
1 gem installed
Installing ri documentation for pygments.rb-0.5.4...
Installing RDoc documentation for pygments.rb-0.5.4...

_config.yml (to have same as github)

# GitHub Defaults
lsi: false
pygments: true
safe: true

# UTF-8 & parse errors fix
markdown: redcarpet

build

F:\Github\home\headjs>jekyll build
Configuration file: F:/Github/home/headjs/_config.yml
            Source: F:/Github/home/headjs
       Destination: F:/Github/home/headjs/_site
      Generating... C:/Ruby193/lib/ruby/gems/1.9.1/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:162: warning: cannot close fd before spawn←[31m  Liquid Exception: No such file or directory - /bin/sh in index.html←[0m done.

Seems more like a path problem. Switching to redcarpet on windows resolves the UTF-8 problems.

Would be nice to be able to upgrade to pygments 0.5.4 to get rid of the python dependencies :-)

from pygments.rb.

VirtueMe avatar VirtueMe commented on June 6, 2024

I got the the same issue running jekyll on windows x64 and Ruby 2.0.0-p247 x64. I cloned Jekyll Bootstrap. I had 1 warning when I ran bundle install.

Parsing documentation for redcarpet-3.0.0
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/redcarpet.so, skipping

But my site ran fine locally and the error came first after I tried to get gfm to work by adding this line to the config:

markdown: redcarpet
C:\github\virtueme.github.io [jb +2 ~3 -1 !]> jekyll serve
Configuration file: C:/github/virtueme.github.io/_config.yml
            Source: C:/github/virtueme.github.io
       Destination: C:/github/virtueme.github.io/_site
      Generating... C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:162: warning: cannot close fd before spawn
  Conversion error: There was an error converting '_posts/core-samples/2011-12-29-jekyll-introduction.md'.
done.
    Server address: http://0.0.0.0:4000
  Server running... press ctrl-c to stop.

PS:
Downgrading to pygments.rb 0.5.0 and installing python 2.7 (python 3.3 didn't fix the issue) fixed this issue for me.

from pygments.rb.

robert-hoffmann avatar robert-hoffmann commented on June 6, 2024

I also use utf-8 encoding as the default in all my files, so i have to use:

* ruby 1.9.3
* pygments 0.5.0
* python 2.7
* and switch markdown to redcarpet

Window 8.1 Pro, x64

from pygments.rb.

slonopotamus avatar slonopotamus commented on June 6, 2024

Unfortunately, Jekyll dropped pygments.rb support: jekyll/jekyll#6823

from pygments.rb.

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.