# HG changeset patch # User Matti Hamalainen # Date 1429642650 -10800 # Node ID 5d886e2137d544723eef2d9cc9473ed19915d271 # Parent 994c398cb3fc507028f5535daae56175c3beb481 urllog: Fix character set conversion a bit. diff -r 994c398cb3fc -r 5d886e2137d5 urllog.tcl --- a/urllog.tcl Fri Mar 13 16:17:40 2015 +0200 +++ b/urllog.tcl Tue Apr 21 21:57:30 2015 +0300 @@ -460,13 +460,9 @@ # Check if the document has specified encoding # KLUDGE! set uencoding $uenc_http2 - if {$uenc_doc != ""} { - # Does it differ from what HTTP says? - if {$uenc_http != "" && $uenc_doc != $uenc_http && $uenc_doc2 != $uenc_http2} { - # Yes, we will try reconverting - set uencoding $uenc_doc2 - } - } elseif {$uenc_http == ""} { + if {$uencoding == "" && $uenc_doc2 != ""} { + set uencoding $uenc_doc2 + } elseif {$uencoding == ""} { # If _NO_ known encoding of any kind, assume the default of iso8859-1 set uencoding "iso8859-1" }