Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.
This repository was archived by the owner on May 28, 2023. It is now read-only.

Website charset issues #35

Description

@Pecon

Looks like you guys have the database set to latin1 so that it'll properly store and reproduce characters for Blockland to read. Unfortunately, the frontend site is set to utf-8; and the characters are read from the database as-is, and as such are single-byte encoded. This causes the characters to show up as random glyphs. The solution to this is to either have php do:

$text=mb_convert_encoding($text, "UTF-8", "Windows-1252");

Or set the charset meta tag of all the pages to ISO-8859-1 (closest supported set). Obviously, converting from php would probably be the best solution, but setting the page charset should also be an acceptable solution.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions