November 14th, 2005

  • ex_nit

getting cyrillic non-utf8 comments by means of export_comments.bml


I have a question regarding old non-utf8 comments when
getting them through export_comments.bml.

export_comments.bml call LJ::text_out on comments' subject
and body, which "blots out all non-ASCII chars":

$$rtext =~ s/[\x00\x80-\xff]/\?/g;

So instead of old cyrillic comments one can only get
question marks.

Journal entries (exported by export_do.bml) on the contrary
are correctly converted by LJ::text_convert.

May I ask developers of livejournal to upgrade export_comments.bml
to use LJ::text_convert on comments' subject, body and picture keywords,
so it gives out somewhat correct data for old non-utf8 comments?

Thanks in advance.