Opened 18 years ago
Closed 18 years ago
#1808 closed defect (fixed)
swedish characters gets scrambled on LCD
Reported by: | anonymous henrik.lilljebjorn AT home.se | Owned by: | Isaac Richards |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythtv | Version: | head |
Severity: | medium | Keywords: | lcd åäö |
Cc: | Ticket locked: | no |
Description
MythTV from svn (9926) doesn't show the swedish characters åäö correctly on an lcd-display, I don't know if this is specific for my installation or not. LCDProc expects iso8859-1 coding, mythlcdserver was sending something else. The character "ä" gets displayed as "à ¤". This is the result of the "ä" utf8 code being wrongly converted from iso8859-1 to utf8. The following patch corrects the issue on my machine, but I don't know if is OK on other machines:
--- mythtv/libs/libmyth/lcddevice.cpp.orig 2006-05-13 12:02:15.000000000 +0200 +++ mythtv/libs/libmyth/lcddevice.cpp 2006-05-11 20:49:41.000000000 +0200 @@ -217,7 +217,8 @@ } QTextStream os(socket->socketDevice()); - + + os.setEncoding(QTextStream::Latin1); last_command = someText; if (connected) --- mythtv/programs/mythlcdserver/lcdprocclient.cpp.orig 2006-05-13 17:17:12.000000000 +0200 +++ mythtv/programs/mythlcdserver/lcdprocclient.cpp 2006-05-13 17:18:56.000000000 +0200 @@ -184,6 +184,7 @@ QTextStream os(socket); + os.setEncoding(QTextStream::Latin1); last_command = someText; if (connected)
OS: Gentoo Linux, Locale: en_US.UTF-8
Note: See
TracTickets for help on using
tickets.
(In [10031]) Close #1808 by applying patch to set latin1 encoding on messages to LCDProc.