RubyMine puts solve the problem of Chinese garbled display

A simple ruby ​​code, puts a Chinese, garbled

# -*- coding: utf-8 -*-
puts "你好"
require_relative  'calc.rb'

# require_relative 'net/ssh'
# test


puts $$

 

I am here to set the utf-8 encoding format of the ah, how or hash it?

 

In fact, RubyMine still need to make the following settings, RubyMine2019 version I use now

 

file --- Settings --- Editor --- Fileconding modify Global Encoding and Porject Encoding encoding format is "" utf-8 "" to

Guess you like

Origin www.cnblogs.com/bainianminguo/p/11104116.html