DJabberd on livejournal.com

Martin Atkins mart at degeneration.co.uk
Mon Dec 15 18:58:55 UTC 2008


I remember a bug of this nature in the SQLite vCard backend being 
discussed a long time ago. Something to do with how the SQLite module 
handles UTF-8.

I thought it'd been fixed, but I can't find anything in the (pretty 
short) revision history for the vCard plugin. Maybe there's a patch 
somewhere in the archive of this mailing list that didn't get committed?

Brad Fitzpatrick wrote:
> Michail,
> 
> Let me copy some people that might help:
> 
> djabberd list, is this bug known/old and maybe already fixed?
> 
> Henry, can you open an internal LiveJournal bug for this, or route 
> appropriately, perhaps to the LJ Russia team?
> 
> On Mon, Dec 15, 2008 at 7:53 AM, Michail Pishchagin 
> <mblsha at yandex-team.ru <mailto:mblsha at yandex-team.ru>> wrote:
> 
>     Hi Brad,
> 
>     I'm not sure whether I should send this to you, or to LiveJournal
>     support, hopefully you could help me on that :-)
> 
>     The bug I'm noticing is that when I ask for a vCard, string data is
>     returned as UTF-8-incoded-in-latin1.
> 
>     Example:
>     <GIVEN>Ибупрофен Коллайдерыч Ð¢ÐµÑ Ñ
>     ерактов-ÐšÑ€Ð¸Ð·Ð¸Ð½Ñ </GIVEN>
> 
>     But the proper result should've been:
>     <GIVEN>Ибупрофен Коллайдерыч Тессерактов-Кризинс</GIVEN>
> 
>     It's fairly easy to check whether that data is valid UTF8, and
>     encode the data appropriately in such case.
> 
>     The bug's been around for a long time, and since it's still not
>     fixed I'd like to know whether there are some serious technical
>     reasons for it staying the way it was?
> 
>     Thanks!
> 
>     Full XML log for reference:
>     <iq type="get" to="cyber_lyric at livejournal.com
>     <mailto:cyber_lyric at livejournal.com>" id="ab02a" >
>     <vCard xmlns="vcard-temp" version="2.0" prodid="-//HandGen//NONSGML
>     vGen v1.0//EN" />
>     </iq>
> 
>     <iq from="cyber_lyric at livejournal.com
>     <mailto:cyber_lyric at livejournal.com>" type="result"
>     to="themblsha at ya.ru/siruba <http://themblsha@ya.ru/siruba>"
>     id="ab02a" lang="ru" >
>     <vCard xmlns="vcard-temp">
>                              <NICKNAME>cyber_lyric</NICKNAME>
>     <N>
>     <GIVEN>Ибупрофен Коллайдерыч Ð¢ÐµÑ Ñ
>     ерактов-ÐšÑ€Ð¸Ð·Ð¸Ð½Ñ </GIVEN>
>     </N>
>     <URL>http://cyber-lyric.livejournal.com/</URL>
>     <ADR>
>     <CTRY>AU</CTRY>
>     <LOCALITY>Nowhere</LOCALITY>
>     </ADR>
>                              <PHOTO>
>                              <TYPE>image/jpeg</TYPE>
>                              <BINVAL>SNIP</BINVAL>
>                              </PHOTO>
>                              </vCard>
>     </iq>
> 
>     -- 
>     Michail Pishchagin
>     Yandex development team.
> 
> 



More information about the Djabberd mailing list