RubyでWindows PowerShell使用して、下記のように文字化けをしてしまいます。
puts "日本語を入力すると#{gets}"
↓ 出力結果
日本語を入力すると��
RubyInstaller for Windows (Ruby+Devkit 2.6.5-1 (x64) )
インストール時に「Use UTF-8 as default external encoding」チェックを入れている
マルチポスト https://ja.stackoverflow.com/questions/61928/
スクリプトのエンコーディングは何ですか?
BOMなし UTF-8です
https://i.imgur.com/o4i5oYg.png
回答1件
あなたの回答
tips
プレビュー
