Bug 493180 - Report export can be "Locale" encoding
Summary: Report export can be "Locale" encoding
Status: RESOLVED FIXED
Alias: None
Product: tellico
Classification: Applications
Component: general (show other bugs)
Version: 4.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Robby Stephenson
URL:
Keywords:
: 494049 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-09-16 01:35 UTC by Robby Stephenson
Modified: 2024-10-03 18:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.0.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robby Stephenson 2024-09-16 01:35:55 UTC
From email:

I use Tellico 4.0 on Arch Linux. I use XFCE and the locale on my system is LANG=fr_FR.UTF-8.
When I generate a report in html the new Tellico version define the charset as "Locale" like this :

meta http-equiv="Content-Type" content="text/html; charset=Locale"

With previous versions of Tellico (as far as I can tell from my backups) the charset in html reports was defined as "utf-8" like this :

meta http-equiv="Content-Type" content="text/html; charset=utf-8"
Comment 1 Robby Stephenson 2024-09-16 01:36:29 UTC
I'm using Tellico on Qt6 (6.7.2)
My version of libxml2 is 2.13.3-1
My version of libxslt is 1.1.42-1

I verified the *.xsl files in /usr/share/tellico/report-templates/ and they all have the encoding="utf-8" in the <xsl:output> element.
In the preview of the generated report in Tellico I can see correct accented characters.
However when I click on the "Save as" button in the Tellico preview and save the html file, then this html file have this :

meta http-equiv="Content-Type" content="text/html; charset=Locale"
Comment 2 Robby Stephenson 2024-09-16 01:38:45 UTC
Git commit 8a4f92895c4cdc1c1768a4b6066bb178661b0c20 by Robby Stephenson.
Committed on 16/09/2024 at 01:38.
Pushed by rstephenson into branch '4.0'.

Use same encoding for HTML 'Save As' as used in the view

M  +0    -13   src/reportdialog.cpp

https://invent.kde.org/office/tellico/-/commit/8a4f92895c4cdc1c1768a4b6066bb178661b0c20
Comment 3 Robby Stephenson 2024-09-20 03:07:24 UTC
Git commit 144d8e191362efe7fdc8bd611cdcab36d5f0b834 by Robby Stephenson.
Committed on 20/09/2024 at 03:07.
Pushed by rstephenson into branch 'master'.

Use same encoding for HTML 'Save As' as used in the view

M  +0    -13   src/reportdialog.cpp

https://invent.kde.org/office/tellico/-/commit/144d8e191362efe7fdc8bd611cdcab36d5f0b834
Comment 4 Robby Stephenson 2024-09-20 22:06:42 UTC
Git commit ee9283c7700e87bc10beff2e0458449e0fd636f3 by Robby Stephenson.
Committed on 20/09/2024 at 22:05.
Pushed by rstephenson into branch '4.0'.

Use "UTF-8" instead of "Locale" for system encoding name

In Qt6, QStringConverter::System is named "Locale" and is UTF-8 on
on Linux.
FIXED-IN: 4.0.1

M  +4    -0    ChangeLog
M  +4    -2    src/utils/string_utils.cpp

https://invent.kde.org/office/tellico/-/commit/ee9283c7700e87bc10beff2e0458449e0fd636f3
Comment 5 Robby Stephenson 2024-09-20 22:06:58 UTC
Git commit d83bdce6be1f005df70bfdbfb4e4431c596726b3 by Robby Stephenson.
Committed on 20/09/2024 at 22:06.
Pushed by rstephenson into branch 'master'.

Use "UTF-8" instead of "Locale" for system encoding name

In Qt6, QStringConverter::System is named "Locale" and is UTF-8 on
on Linux.
FIXED-IN: 4.0.1

M  +4    -0    ChangeLog
M  +4    -2    src/utils/string_utils.cpp

https://invent.kde.org/office/tellico/-/commit/d83bdce6be1f005df70bfdbfb4e4431c596726b3
Comment 6 Robby Stephenson 2024-10-03 18:32:34 UTC
*** Bug 494049 has been marked as a duplicate of this bug. ***