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

Bug #1530597 reported by Simon Hanna on 2016-01-02
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Committed
Tomas Groth
Fix Released
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

Simon Hanna (thelinuxguy) wrote :

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

Simon Hanna (thelinuxguy) wrote :

turns out it is a registered bug in chardet

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...

Simon Hanna (thelinuxguy) wrote :

I have at least one song that uses utf-8

Tomas Groth (tomasgroth) wrote :

Stumbled over this, which should make it simpler to detect encoding:

Changed in openlp:
assignee: nobody → Tomas Groth (tomasgroth)
importance: Undecided → Low
status: New → In Progress
Tim Bentley (trb143) on 2017-01-20
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  Edit
Everyone can see this information.

Other bug subscribers