Skip to content

[Bug]: Character encoding is not declared in the output HTML #2618

Description

@adrianlopezgalera

Operating system

Linux, MacOS and Windows

Publii version

0.47.6 (lastest)

Post editor

No response

Bug description

I have several sites on a Publii installation. They all preview correctly. Suddenly, without any updates or extensions, one of my sites started exporting its HTML without specifying the character encoding.

This causes my website, which is in Spanish, to display a lot of strange characters, making it ugly and unreadable.

Image

A workaround for this problem is to manually add this line to the HTML header using Publii's built-in HTML editor:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Could this be a database corruption issue?

Steps to reproduce

This bug only occurs in the HTML exported by Publii, not in the preview. This simply happens when this site is deployed to the server. To date, it has only happened on one of my sites. All sites share the same hosting. The other sites, which are managed within the same application, do not appear to be affected.

Relevant log output

I haven't seen anything relevant. Any guidance?

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions