Skip to content

Fixing encoding issue in core_ext/string.rb #3

@jcf

Description

@jcf

When running webby-gen under Ruby 1.9.1 an invalid multibyte character in the String extensions file will potentially produce an encoding error.

webby-0.9.4/lib/webby.rb:104:in `require': gems/ruby-1.9.1-p378/gems/webby-0.9.4/lib/webby/core_ext/string.rb:15: invalid multibyte char (US-ASCII) (SyntaxError)

webby-0.9.4/lib/webby/core_ext/string.rb:15: invalid multibyte char (US-ASCII)

This can be fixed by simply specifying UTF-8 encoding throughout the string extensions file using something like…

# encoding: utf-8

Maybe this fix could be added to master?

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