HomePhabricator

Parse html as whole document to avoid encoding issues

Tags
None
Referenced Files
None
Subscribers
None

Description

Parse html as whole document to avoid encoding issues

Remove use of mb_convert_encoding to convert html entities,
which is deprecated in php8.2

According to the html spec a html document without encoding is in ascii
and allows non-ascii letters only as html entities, thats why the
conversion from utf-8 to html entities is needed. Avoid this by parsing
a utf8-html document.

Bug: T324170
Change-Id: Ieaca3338d580121603eae0ba058cfb8ac3d56abc
(cherry picked from commit 4b095fef87fb463e238a09b298adf8d6035ba2f8)

Details

Provenance
UmherirrenderAuthored on Jan 12 2023, 8:52 PM
ashleyCommitted on Feb 27 2023, 11:08 PM
Parents
R1893:aac29e3d1fa4: Localisation updates from https://translatewiki.net.
Branches
Unknown
Tags
Unknown
References
refs/changes/14/892414/1
ChangeId
Ieaca3338d580121603eae0ba058cfb8ac3d56abc