Skip to content

Encoding.default_external == "US-ASCII" #32

@ongaeshi

Description

@ongaeshi

日本語が含まれたファイルを読み込もうとするとエラーになる。"utf-8"で設定すると読める。デフォルト値を"utf-8"にしたい。

https://scrapbox.io/rubyonbrowser/%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%E8%AA%AD%E3%82%80%E3%81%A8%E3%81%8D%E3%81%ABUTF-8%E3%81%A7%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80

Encoding.default_external = "utf-8"

File.read("foo.rb")
  .gsub(/Foo/, "Bar")

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