Skip to content

UTF-8/ASCII encoding problem under NGINX/Passenger #19

Description

@corporealfunk

Odd that this happens only when running ABBA as a rack app under NGINX/Passenger, but when I do, I get this error message:

Error compiling CSS asset

Encoding::InvalidByteSequenceError: "\xE2" on US-ASCII
    (in /var/code/abba/app/assets/stylesheets/experiment.css.styl)

    (/var/code/abba/vendor/bundle/ruby/1.9.1/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:173:in `read'

I understand that issue may be more appropriately answered in the ExecJS or the Stylus project, maybe even Passenger! I'm not sure exactly which of these projects this is best addressed in.

This doesn't happen when running under thin.

However, by adding this line at the top of the config.ru file, the issue is solved for me given my preferred deployment setup:

Encoding.default_external = 'UTF-8'

Thought I'd open this issue in part to see if others have this problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions