Skip to content

Detect content-charset and ensure the presence of correct metadata #361

Closed
@sria91

Description

@sria91

The following command produces output which is rendered incorrectly by current browsers.

$ echo '<!doctype html><html><head><title>ಕನ್ನಡ</title></head><body>ಸವಿಗನ್ನಡ</body></html>' | tidy.exe -i -utf8 -o output.html

Current output.html

<!DOCTYPE html>
<html>
<head>
  <meta name="generator" content=
  "HTML Tidy for HTML5 for Windows version 5.1.34">
  <title>ಕನ್ನಡ</title>
</head>
<body>
  ಸವಿಗನ್ನಡ
</body>
</html>

Required output.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="generator" content=
  "HTML Tidy for HTML5 for Windows version 5.1.x">
  <title>ಕನ್ನಡ</title>
</head>
<body>
  ಸವಿಗನ್ನಡ
</body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions