Bug 314113

Summary: Font encoding for IMDb results list broken
Product: [Applications] tellico Reporter: Mihai C. <mihai>
Component: generalAssignee: Robby Stephenson <robby>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: 2.3.7   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In: 2.3.8
Sentry Crash Report:
Attachments: Example of broken font encoding

Description Mihai C. 2013-01-30 07:39:22 UTC
The IMDb results list uses a bad font encoding, resulting in strage characters. Otherwise, Tellico presents the IMDb data correctly and stores it correctly in the XML. So this is only a minor annoiance.

Reproducible: Always

Steps to Reproduce:
1. Search IMDb for Hara-Kiri.
2. Scroll the list of results.
3. Observe the strange characters in some of the titles, e.g., Goyôkiba: Kamisori Hanzô jigoku zeme.



Using Ubuntu 12.04 and Tellico binary from https://launchpad.net/~dominik-stadler/+archive/ppa?field.series_filter=precise
Comment 1 Mihai C. 2013-01-30 07:40:44 UTC
Created attachment 76801 [details]
Example of broken font encoding
Comment 2 Robby Stephenson 2013-02-09 23:08:14 UTC
Git commit bcd5473f266517fbfe1bf7c8741dada471f4f44b by Robby Stephenson.
Committed on 09/02/2013 at 23:49.
Pushed by rstephenson into branch '2.3'.

Fix character encoding for IMDB results list

QTextCodec::codecForHtml() appears not to be able to detect the
content-type of the IMDB html and falls back to iso-8859-1. Since
we know IMDB actually returns utf-8, make it so.

Test case included.
FIXED-IN: 2.3.8

M  +4    -0    ChangeLog
M  +1    -0    src/fetch/fetcherjob.h
M  +2    -1    src/fetch/imdbfetcher.cpp
M  +3    -2    src/tellico_utils.cpp
M  +1    -1    src/tellico_utils.h
M  +22   -0    src/tests/imdbfetchertest.cpp
M  +1    -0    src/tests/imdbfetchertest.h

http://commits.kde.org/tellico/bcd5473f266517fbfe1bf7c8741dada471f4f44b