vagrant box add meta.json出现编码错误解决方案

You should go to "C:\HashiCorp\Vagrant\embedded\gems\2.2.14\gems\vagrant-2.2.14\bin" address and open "vagrant" file. At the beginning of the file, you will see "#!/usr/bin/env ruby" Paste the below 2 lines after this first line.

Encoding.default_external = Encoding.find('Windows-1251')
Encoding.default_internal = Encoding.find('Windows-1251')

Be careful, they are "1251", not "1250".
Solved. :)

posted @ 2022-07-18 11:03  痞子胥  阅读(42)  评论(0)    收藏  举报