Fixed \XF\Http\Metadata is not HTML5 compliant

Affected version
2.1.3

Kirby

Well-known member

In HTML5 browsers are required to recognize the UTF-8 BOM and use it to detect the encoding of the page
\XF\Http\Metadata does not detect UTF-8 BOM and might incorrectly fallback to windows-1252 if a website does not explicitly specify an encoding which does cause problems like https://xenforo.com/community/threads/links-from-microsofts-turkey-site-are-scrambled.167767/
 
Last edited:

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue. It has now been resolved and we are aiming to include it in a future XF release (2.1.4).

Change log:
Detect UTF-8 Byte Order Marker to prevent incorrect Windows-1252 fallback
Any changes made as a result of this issue being resolved may not be rolled out here until later.
 
Top