Problem to install Jekyll on Windows 10

Hi,
I am trying to install Jekyll, on windows 10, I have installed ruby dev kit with the following specification (In UT-8 mode // Actually I have tried with or without but it doesn’t change anything)

C:\WINDOWS\system32>ruby -v
ruby 2.4.4p296 (2018-03-28 revision 63013) [x64-mingw32]

C:\WINDOWS\system32>gem -v
2.6.14.1

But when I do, I have the following error

C:\WINDOWS\system32>gem install bundler jekyll
ERROR:  While executing gem ... (Encoding::InvalidByteSequenceError)
incomplete "\x00" on UTF-16LE

Thanks for your help

what shell are you using? normal command prompt? powershell?

I use Win 10 and have had no issues, I use Powershell or the normal command prompt.

Maybe try it from a different location, looks like you are inside the windows system files, maybe that is not a valid location to install from?

Looks like an encoding issue to me. Have you tried this as per the Jekyll docs?

Also searching for “ERROR: While executing gem … (Encoding::InvalidByteSequenceError)” came across these suggestions:

Yes I have tried those solutions but it does not work:

  • adding in the terminal chcp 65001
  • or that one chcp 1252
  • This did not change anything: Editing the “C:\Ruby21-x64\lib\ruby\2.1.0\win32\registry.rb” (according to your real install directory) and change LOCALE constant: LOCALE = Encoding::UTF_8

I also followed this tutorial to trace back the error, but it does not change anything unfortunately
https://bugs.ruby-lang.org/issues/10300