[Libreoffice-bugs] [Bug 37615] Make UTF-8 the default charset for saving as HTML

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 10 13:45:15 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=37615

Andreas Heinisch <andreas.heinisch at yahoo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andreas.heinisch at yahoo.de

--- Comment #13 from Andreas Heinisch <andreas.heinisch at yahoo.de> ---
This can be solved in various ways, and atm I am not sure which is the best
approach:

- The easiest way to solve this is to just change the encoding to UTF8 for all
plattforms in
https://opengrok.libreoffice.org/xref/core/cui/source/options/opthtml.cxx?r=da9bba7c#62
(m_xCharSetLB->SelectTextEncoding(RTL_TEXTENCODING_UTF8);)

- The best way however should to check, if the function
SvxTextEncodingBox::FillWithMimeAndSelectBest and
SvtSysLocale::GetBestMimeEncoding can be changed to always show the utf8
charset. However, these functions retrieve the charset from the Windows code
page, and it contains the windows-1252 charset on Windows. You may change the
charset on Windows to UTF8 as well.

- Maybe also the SvxTextEncodingBox::FillWithMimeAndSelectBest can be adjusted
in order to get always the UTF8 charset on every platform.

Opinions?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210810/1eb82d7b/attachment.htm>


More information about the Libreoffice-bugs mailing list