Skip to content
Discussion options

You must be logged in to vote

Hi there! 👋

The problem you’re seeing with your Traditional Chinese Big5-encoded HTML files on GitHub Pages happens because of encoding differences. Here’s what’s going on:

Why it happens

  • GitHub’s file viewer can read <meta charset="Big5"> correctly, so the files look fine when browsing the repo.
  • GitHub Pages, however, serves files assuming UTF-8 by default. That’s why Big5-encoded characters often appear broken (like �) when viewed on the site.

What you can do

  1. Convert your files to UTF-8 (easiest way)

    • Change the HTML meta tag to:
      <meta charset="UTF-8">
    • Convert the actual files from Big5 to UTF-8. You can do this with:
      • VS Code or Notepad++
      • Or via command line:
        iconv -f BIG5 -t UTF-…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@AnitaYCheng
Comment options

Answer selected by AnitaYCheng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Pages Host a static website, right from your repo
2 participants