Posts [Jekyll] invalid byte sequence in US-ASCII 였λ₯˜ ν•΄κ²°
Post
Cancel

[Jekyll] invalid byte sequence in US-ASCII 였λ₯˜ ν•΄κ²°

🧐였λ₯˜ λ°œμƒ 상황

github.io λΈ”λ‘œκ·Έμ— κ²Œμ‹œλ¬Όμ„ 올리기 전에 둜컬 ν™˜κ²½μ—μ„œ ν…ŒμŠ€νŠΈ ν•˜κΈ° μœ„ν•΄ μ•„λž˜μ™€ 같은 λͺ…λ Ήμ–΄λ₯Ό μ‹€ν–‰μ‹œμΌ°λ‹€.

1
bundle exec jekyll serve

ν•˜μ§€λ§Œ, μ•„λž˜μ™€ 같은 였λ₯˜λ₯Ό 좜λ ₯ν–ˆλ‹€.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[!] There was an error parsing `Gemfile`: 
[!] There was an error while loading `jekyll-theme-chirpy.gemspec`: invalid byte sequence in US-ASCII. Bundler cannot continue.

 #  from /Users/joonhyuk/workspace/Han-Joon-Hyeok.github.io/jekyll-theme-chirpy.gemspec:13
 #  -------------------------------------------
 #  
 >    spec.files         = `git ls-files -z`.split("\x0").select { |f|
 #      f.match(%r!^((assets\/(css|img|js\/[a-z])|_(includes|layouts|sass|config|data|tabs|plugins))|README|LICENSE|index|feed|app|sw|404|robots)!i)
 #  -------------------------------------------
. Bundler cannot continue.

 #  from /Users/joonhyuk/workspace/Han-Joon-Hyeok.github.io/Gemfile:5
 #  -------------------------------------------
 #  
 >  gemspec
 #  
 #  -------------------------------------------

β“μ˜€λ₯˜ λ°œμƒ 원인

bundle 은 ν”„λ‘œκ·Έλž¨ μ‹€ν–‰ μ‹œ λ‘œμΌ€μΌ(Locale)을 en-US 둜 ν•΄μ„ν•œλ‹€.

ν•˜μ§€λ§Œ 둜컬 ν™˜κ²½ λ³€μˆ˜μ— λ‘œμΌ€μΌμ΄ en-US 둜 μ„€μ •λ˜μ–΄ μžˆμ§€ μ•Šμ•˜λ‹€.

βœ…μ˜€λ₯˜ ν•΄κ²° 방법

μ•„λž˜μ˜ λͺ…λ Ήμ–΄λ₯Ό 터미널에 μž…λ ₯ν•œλ‹€.

1
export LC_CTYPE=en_US.UTF-8

참고자료

This post is licensed under CC BY 4.0 by the author.

ν”„λ‘œκ·Έλž˜λ¨ΈμŠ€ Level 1 - 콜라 문제 (JavaScript)

[42Seoul] minishell (1) κ°œλ… 정리