Skip to content

Commit 2784c97

Browse files
committed
Use UTF-8 explicitly
... to prevent Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/styles.scss': Invalid US-ASCII character "\xE2" on line 3 [0] 2c458de [1] https://gitlab.com/gitlab-com/support-forum/issues/2668#note_49817587
1 parent 9723c58 commit 2784c97

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.gitlab-ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ variables:
77
JEKYLL_ENV: production
88

99
before_script:
10+
- apt-get update >/dev/null
11+
- apt-get install -y locales >/dev/null
12+
- echo "en_US UTF-8" > /etc/locale.gen
13+
- locale-gen en_US.UTF-8
14+
- export LANG=en_US.UTF-8
15+
- export LANGUAGE=en_US:en
16+
- export LC_ALL=en_US.UTF-8
1017
- bundle install
1118

1219
test:

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ EXPOSE 4000
3434

3535
# Set default locale
3636
ENV LC_ALL C.UTF-8
37-
ENV LANG en_US.UTF-8
38-
ENV LANGUAGE en_US.UTF-8
3937

4038
ENTRYPOINT ["jekyll"]
4139
CMD ["server", "--port", "4000", "--host", "0.0.0.0", "--trace", "--incremental", "--profile", "--watch", "--drafts", "--verbose"]

0 commit comments

Comments
 (0)