10000 Errors with German characters · Issue #77 · nebulab/erb-formatter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Errors with German characters #77
Open
@maxhoffmann

Description

@maxhoffmann

As soon as there are German characters in the file the formatter throws an error:

Users/meingrundeinkommen/.rbenv/versions/3.3.7/lib/ruby/gems/3.3.0/gems/erb-formatter-0.7.3/lib/erb/formatter.rb:101:in `gsub!': invalid byte sequence in US-ASCII (ArgumentError)
    
        @source.gsub!(ERB_PLACEHOLDER) { |tag| build_uid[].tap { |uid| pre_placeholders[uid] = tag } }
                      ^^^^^^^^^^^^^^^

To reproduce add characters like ß, ö, ä or ü to a valid file and it should reproduce this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0