Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant Windows-1251 encoding error

Tags:

vagrant

I got the next error with vagrant when trying to use "vagrant up" command:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'precise32'...
C:/HashiCorp/Vagrant/embedded/gems/gems/childprocess-0.5.3/lib/childprocess/wind
ows/process_builder.rb:43:in `join': incompatible character encodings: Windows-1
251 and UTF-8 (Encoding::CompatibilityError)

I have Windows 8.1, and I used "chcp 1251" command before, because it was the same error with "ibm866" encoding.

Thanks!

like image 807
drmckay- Avatar asked Sep 28 '14 15:09

drmckay-


2 Answers

Problem was solved by setting environment variable VAGRANT_HOME

like image 169
drmckay- Avatar answered Sep 21 '22 12:09

drmckay-


the solution for me was this one .

You have to go to : c:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.6.3\bin\vagrant

And edit the vagrant (file) and put after this : #!/usr/bin/env ruby

this 2 lines

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

Good luck!

like image 41
Dexpo Avatar answered Sep 23 '22 12:09

Dexpo