Giter VIP home page Giter VIP logo

Comments (8)

troyswanson avatar troyswanson commented on July 17, 2024

Try adding the following within your <head> tag (assuming you're using HTML5):

<meta charset="utf-8"> 

The files are probably encoded fine, but you need to tell the browser to expect that encoding type. Check out my response to jekyll/jekyll#1858 for some more context.

from pages-gem.

jayproulx avatar jayproulx commented on July 17, 2024

Oddly this doesn't reproduce on Apache or a Node HTTP server, I'll give that a shot.

from pages-gem.

jayproulx avatar jayproulx commented on July 17, 2024

Weird and cool, thanks, that worked. I've been staring at the .js file, I didn't think to look at the HTML.

from pages-gem.

troyswanson avatar troyswanson commented on July 17, 2024

No problem, glad it worked for you!

Btw, the Apache and Node servers might be putting out a UTF-8 charset HTTP header which, would also be an acceptable fix (if you have control of HTTP headers, which on GitHub Pages, you do not).

from pages-gem.

jayproulx avatar jayproulx commented on July 17, 2024

Thanks Troy, really appreciate the suggestion!

from pages-gem.

parkr avatar parkr commented on July 17, 2024

@jayproulx Thanks for filing this issue! GitHub Pages was not correctly setting UTF-8 Charset headers automatically. I checked with the intrepid GitHub Ops folks (namely @azizshamim), who did some magic ⚡ and added them for ya:

curl -Ik http://your-pages-site.com/
HTTP/1.1 200 OK
Server: GitHub.com
Date: Wed, 12 Feb 2014 18:32:35 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 1528
Last-Modified: Tue, 28 Jan 2014 22:16:57 GMT
Expires: Wed, 12 Feb 2014 18:42:35 GMT
Cache-Control: max-age=600
Vary: Accept-Encoding
Accept-Ranges: bytes

Happy 🚢-ing! ✨

from pages-gem.

troyswanson avatar troyswanson commented on July 17, 2024

@parkr This will help big time, especially when jekyll/jekyll#2031 drops.

45940123

from pages-gem.

jayproulx avatar jayproulx commented on July 17, 2024

Wow, fast footwork guys, very awesome!

from pages-gem.

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.