[Xapian-tickets] [Xapian] #293: sample field is not converted to html in non-utf8 htmpl documents (was: sample field is not converted to html8 in non-utf8 htmpl documents)

Xapian nobody at xapian.org
Tue Sep 2 00:03:39 BST 2008


#293: sample field is not converted to html in non-utf8  htmpl documents
--------------------+-------------------------------------------------------
 Reporter:  rssh    |        Owner:  olly 
     Type:  defect  |       Status:  new  
 Priority:  normal  |    Milestone:       
Component:  Omega   |      Version:  1.0.7
 Severity:  normal  |   Resolution:       
 Keywords:          |    Blockedby:       
 Platform:  All     |     Blocking:       
--------------------+-------------------------------------------------------
Changes (by olly):

  * version:  other => 1.0.7


Old description:

> Problem, that sample field is not converted to utf8, because omega set
> sample from value of description attribute, but htmlk parsers does not
> convert attribute values to utf8.
>
> Patch to fix is attached. (against 1.0.7, but I can;t see 1.0.7 in trac
> version options lins)

New description:

 Problem, that sample field is not converted to utf8, because omega set
 sample from value of description attribute, but html parsers does not
 convert attribute values to utf8.

 Patch to fix is attached. (against 1.0.7, but I can;t see 1.0.7 in trac
 version options lins)

--

Comment:

 1.0.7 is in the list, but not next to 1.0.6.  We imported data from
 bugzilla.  The import script orders the versions with the newest first,
 but trac adds new entries to the end.  I don't know how to correct this
 stupidity.

 This patch doesn't look right to me either.  It would lead to a double
 conversion to UTF-8 in some situations.

 I'm suspecting that this and #292 are actually the same issue and we need
 to parse the document to find any meta http-equiv which specifies the
 character set, then convert the document to that and reparse.

 Could you supply a sample document which shows this problem too?  Or a
 single document which shows both.

-- 
Ticket URL: <http://trac.xapian.org/ticket/293#comment:1>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list