Code Monkey home page Code Monkey logo

Comments (7)

yulijia avatar yulijia commented on August 22, 2024 1

Hi @Richeir ,

Thank you for your feedback, please try only add "@charset "utf-8"; " on _layout.scss.

If you can build it successfully, please close the pull request and submit a new one.

from freshman21.

Richeir avatar Richeir commented on August 22, 2024 1

Hello @yulijia
I should be apologized to you. This is a confused situation.

  1. I fork the freshman21 project and just run without change anything, but the css file can not be converted, so the blog have no css file and looks strange.

  2. I clone the freshman21 project into my computers.

  • On Mac, jekyll build just fine and css file can be converted, blog looks good, all things well.
  • On Windows 10, conversion error appeared, just like my pull request, after add "@charset "utf-8"; " in every scss file, then things can be well.

This is what I can get.
Thanks for your freshman21, I really like this jekyll theme.

from freshman21.

yulijia avatar yulijia commented on August 22, 2024 1

Hi, thank you.

I mean would you mind help me to test it on Windows 10, if we only add ' @charset "utf-8"; ' in _layout.scss file, could we build the blog with css correctly?

If it works, you can push a new request (only add @charset "utf-8"; to one file) and help me to fix this bug on Windows OS.

from freshman21.

yulijia avatar yulijia commented on August 22, 2024 1

Hi @Richeir,

Thank you for your help.

Cause of the error is a UTF-8 character "\xE3" in _layout.scss (line 324 and 329) cannot be shown correctly on Some OS with default GBK character encodings.
I wonder to know if add @charset "utf-8";in _layout.scss file will fix this bug.

from freshman21.

Richeir avatar Richeir commented on August 22, 2024

Hello @yulijia

Thanks for your reply.

jekyll 3.4.3 | Error: Invalid GBK character "\xE3" on line 324

GBK is Chinese Internal Code Specification, maybe this error only shows in OS use Chinese language.

add ' @charset "utf-8"; ' in _layout.scss file

I will make a complete test this weekends with your advice. The test will through MacOS, Windows 10 (Chinese), Windows 10 (English), Linux(Chinese), Linux(English).

Best Regards,
Richeir

from freshman21.

Richeir avatar Richeir commented on August 22, 2024

Hello, @yulijia

I wonder to know if add @charset "utf-8";in_layout.scss file will fix this bug.

Your advice is correct, After add @charset "utf-8"; in_layout.scss file, both MacOS and Windows build pass and run well.

I have made a pull request, please accept it.

Best Regards,
Richeir

from freshman21.

yulijia avatar yulijia commented on August 22, 2024

Thanks.

from freshman21.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.