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

invalid byte sequence in US-ASCII (ArgumentError) when file have accents / UTF-8 chars #15

Open
blvz opened this issue Dec 4, 2012 · 1 comment

Comments

@blvz
Copy link

blvz commented Dec 4, 2012

it's breaking on Ruby 1.9, when converting HAML files that use accents, for example.

/Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/gems/haml2slim-0.4.6/lib/haml2slim/converter.rb:18:in `[]': invalid byte sequence in US-ASCII (ArgumentError)
    from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/gems/haml2slim-0.4.6/lib/haml2slim/converter.rb:18:in `parse_line'
    from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/gems/haml2slim-0.4.6/lib/haml2slim/converter.rb:8:in `block in initialize'
    from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/gems/haml2slim-0.4.6/lib/haml2slim/converter.rb:7:in `each_line'
    from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/gems/haml2slim-0.4.6/lib/haml2slim/converter.rb:7:in `initialize'
    from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/gems/haml2slim-0.4.6/lib/haml2slim.rb:6:in `new'
    from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/gems/haml2slim-0.4.6/lib/haml2slim.rb:6:in `convert!'
    from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/gems/haml2slim-0.4.6/lib/haml2slim/command.rb:75:in `_process'
    from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/gems/haml2slim-0.4.6/lib/haml2slim/command.rb:55:in `block in process!'
    from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/gems/haml2slim-0.4.6/lib/haml2slim/command.rb:55:in `each'
    from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/gems/haml2slim-0.4.6/lib/haml2slim/command.rb:55:in `process!'
    from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/gems/haml2slim-0.4.6/lib/haml2slim/command.rb:14:in `run'
    from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/gems/haml2slim-0.4.6/bin/haml2slim:7:in `<top (required)>'
    from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/bin/haml2slim:19:in `load'
    from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/bin/haml2slim:19:in `<main>'
    from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/bin/ruby_noexec_wrapper:14:in `eval'
    from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/bin/ruby_noexec_wrapper:14:in `<main>'
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