Comments (8)
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.
Oddly this doesn't reproduce on Apache or a Node HTTP server, I'll give that a shot.
from pages-gem.
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.
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.
Thanks Troy, really appreciate the suggestion!
from pages-gem.
@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.
@parkr This will help big time, especially when jekyll/jekyll#2031 drops.
from pages-gem.
Wow, fast footwork guys, very awesome!
from pages-gem.
Related Issues (20)
- i18n dependency version conflict preventing activesupport update to fix CVE-2023-22796 HOT 2
- Liquid version on M1 Mac HOT 3
- No syntax highlighting for Dafny HOT 2
- baseurl is rendered as an empty string HOT 1
- Links with titles not handled properly
- <!DOCTYPE html> <html> <body> <h1>Hello World</h1> <p>I'm hosted with GitHub Pages.</p> </body> </html> HOT 2
- Work with latest Ruby 3
- NoMethodError: undefined method `inflate' for Gem:Module HOT 1
- GitHub Pages Deployment Failing HOT 3
- can't find gem bundler (= 2.0.1) with executable bundle HOT 1
- Consider adding `webrick` to the whitelist of allowed GitHub Pages dependencies to avoid build warnings HOT 1
- Find a maintainer or update support condition HOT 1
- Running with docker image does not work out-of-the-box HOT 1
- Whitelisting jekyll-webpack
- Failed to serve site HOT 2
- Windows: Failed to build (mathn) HOT 2
- Error: csv was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0 HOT 1
- Can't serve website due to sass-embedded version HOT 2
- Gem may fail if a user has a repository with many contributors HOT 2
- override theme's `default.html` or equivalent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pages-gem.