From patchwork Wed Mar 19 21:34:21 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Klaus Schmidinger X-Patchwork-Id: 12633 Received: from raven.cadsoft.de ([217.7.101.211]) by www.linuxtv.org with esmtp (Exim 4.63) (envelope-from ) id 1Jc5vY-0006aa-F6 for vdr@linuxtv.org; Wed, 19 Mar 2008 22:34:29 +0100 Received: from [192.168.100.10] (hawk.cadsoft.de [192.168.100.10]) by raven.cadsoft.de (8.13.3/8.13.3) with ESMTP id m2JLYM8K012374 for ; Wed, 19 Mar 2008 22:34:22 +0100 Message-ID: <47E186DD.6030507@cadsoft.de> Date: Wed, 19 Mar 2008 22:34:21 +0100 From: Klaus Schmidinger Organization: CadSoft Computer GmbH User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: vdr@linuxtv.org References: <47E0E22A.7070905@free.fr> <47E0E361.1080906@cadsoft.de> <47E0E6EE.4090801@free.fr> In-Reply-To: <47E0E6EE.4090801@free.fr> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (raven.cadsoft.de [192.168.1.1]); Wed, 19 Mar 2008 22:34:22 +0100 (CET) X-MIME-Autoconverted: from 8bit to quoted-printable by raven.cadsoft.de id m2JLYM8K012374 X-LSpam-Score: -1.4 (-) X-LSpam-Report: No, score=-1.4 required=5.0 tests=AWL=1.202, BAYES_00=-2.599 autolearn=ham Subject: Re: [vdr] wrong characters in EPG (vdr-1.5.18) X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 21:34:29 -0000 Status: O X-Status: X-Keywords: X-UID: 16209 On 03/19/08 11:11, Éric Laly wrote: > Klaus Schmidinger a écrit : >> On 03/19/08 10:51, Éric Laly wrote: >>> Hello all, >>> >>> I've rebuilt my vdr with two DVB-T cards. >>> Until then it was running with a very old vdr (1.3) and DVB-S. >>> My locale was set to fr_FR in order to have the good charset and >>> everything was fine (vdr menu and EPG in french). >>> >>> With the new 1.5 series I've understood that vdr now supports unicode >>> (since 1.5.12 ?) so my locale is now set to fr_FR.UTF-8. >>> The vdr menus are in french and the accentuated character are good ( é, >>> è, î, à ...) but in the EPG the accentuated characters are wrong with >>> some channels. >>> For exemple now, the EPG is showing "l'odyssøe" instead of "l'odyssée" >>> on ARTE but is showing "Bien-être" on direct8 (which are the good >>> characters). >> Does the problem persist if you stop VDR, delete the epg.data file, and >> restart it? > I've just tried and unfortunately yes. Please do this and check which encodings are listed in EPG strings for ARTE and direct8. Have you set VDR_CHARSET_OVERRIDE? Klaus --- libsi/si.c 2008/03/05 17:00:55 1.25 +++ libsi/si.c 2008/03/19 21:30:47 @@ -416,6 +416,10 @@ // FIXME Need to make this UTF-8 aware (different control codes). // However, there's yet to be found a broadcaster that actually // uses UTF-8 for the SI data... (kls 2007-06-10) + if (size > 20) { + to = stpcpy(to, cs); + to = stpcpy(to, "@"); + } for (int i = 0; i < len; i++) { if (*from == 0) break;