Importing Songbeamer songs using latin1 encoding doesn't get decoded correctly

Bug #1530597 reported by Simon Hanna
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Fix Committed
Low
Tomas Groth
2.4
Fix Released
Low
Tomas Groth

Bug Description

When exporting Songbeamer songs from Windows and then importing them on Linux,
the encoding of the songs is latin1. During the import OpenLP seems to assume they are UTF-8.
This works for "normal" characters but breaks for german "Umlaute"

Related branches

Revision history for this message
Simon Hanna (thelinuxguy) wrote :

It looks like chardet is the culprit that detects the file being MacCyrillic

Revision history for this message
Simon Hanna (thelinuxguy) wrote :

turns out it is a registered bug in chardet
https://github.com/chardet/chardet/issues/24

Revision history for this message
Tomas Groth (tomasgroth) wrote :

Does songbeamer always use latin1, or can or use other encodings? If it only uses latin1 the chardet detection isn't needed...

Revision history for this message
Simon Hanna (thelinuxguy) wrote :

I have at least one song that uses utf-8

Revision history for this message
Tomas Groth (tomasgroth) wrote :

Stumbled over this, which should make it simpler to detect encoding:
https://forum.songbeamer.com/viewtopic.php?p=419&sid=ca4814924e37c11e4438b7272a98b6f2

Changed in openlp:
assignee: nobody → Tomas Groth (tomasgroth)
importance: Undecided → Low
status: New → In Progress
Tim Bentley (trb143)
Changed in openlp:
milestone: none → 2.5.1
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.