How to specify output file encoding in Ruby?

前端 未结 3 1830
南旧
南旧 2020-12-15 03:04

How can I set the encoding of a file when using a File#open?

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-15 04:04

    That blog also has a bunch of great information about character encoding with Ruby, including a post about encoding with Ruby 1.8.

提交回复
热议问题