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

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

lp:~tomasgroth/openlp/song-import-fixes25
Tim Bentley: Approve on 2017-01-20
lp:~tomasgroth/openlp/song-import-fixes24
Tim Bentley: Approve on 2017-01-22
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
https://github.com/chardet/chardet/issues/24

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:
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) 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