Re: Unicode error (Long)

Francois Granger <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <a05200f7bbac74fb1aa19@[192.168.1.20]>
At 02:15 +0800 20/04/2003, in message Re: [pyblosxom-users] Unicode 
error (Long), Wari Wahab wrote:
>Francois Granger wrote:
>
>>  File "./libs/renderers/blosxom.py", line 217, in render
>>  self.__outputFlavour(parsevars,'head')
>
>There's something at your head.html file that causes this to choke. 
>I can't really help you with the unicode errors though, but Ted may 
>help, You could probably attach your head.html and let one of the 
>developers disect the unicode problems. I suspect the text: Vous 
>êtes ici or Catégories is the show stopper, but maybe not. Ted, for 
>your info, it happened on my site as well on the 'ç' character.

That the reason why I spell my first name the french way, to detect bugs ;-)

>
>We are nearing a release, so this bug is quite helpful for a more 
>stable pyblosxom.

So, some place for a try: except close ? ;-)

Hear is my head, but the thing strange is this position 62 in the 
error message.

HTH

-- 
Hofstadter's Law :
It always takes longer than you expect, even when you take into 
account Hofstadter's Law.
%head.html (application/applefile, 864 B) - not displayed
head.html (text/html, 13.2 KB)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>$blog_title</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="Expires" content="+1" />
	<meta name="author" content="Fran&ccedil;ois Granger" />
	<meta name="publisher" content="Fran&ccedil;ois Granger" />
	<meta name="publisher-Email" content="[email protected]" />
	<meta http-equiv="Reply-To" content="[email protected]" />
	<meta name="keywords" content="jardinage, gardening, spam, mail, email, courrier, politique, politic, francois, fran&ccedil;ois, granger, carnet, democratie, d&eacute;mocratie, emergent, &eacute;mergente, emergent, democracy, python, pyblosxom, blosxom, utf8, blog, weblog, news, mac, macos, " />
	<meta name="description" content="Un blog &agrave; propos de mes centres d'interets. A blog around my interests" />
	<meta name="ICBM" content="48.813600,2.313600" />
<meta name="geo.country" content="FR" />
<meta name="copyright" content="Copyright 2003 Fran&ccedil;ois Granger" />
	<meta name="DC.title" content="Misc..." />
<meta name="DC.Type" content="Collection" />
<meta name="DC.Title" content="Misc" />
<meta name="DC.Description" content="Un blog &agrave; propos de mes centres d'interets. A blog around my interests" />
<meta name="DC.Identifier" content="http://francois.granger.free.fr/blog" />
<meta name="WMDI.CMS" content="Pyblosxom" />
<meta name="dc.language" content="fr, en" />
<meta name="DC.Date.Created" content="2002 11 01" />
<meta name="DC.Creator" content="Fran&ccedil;ois Granger" />
<meta name="WMDI.ContactInfo" content="http://francois.granger.free.fr/blog" />

<meta name="DC.Rights"
	content="Copyright 2003 Fran&ccedil;ois Granger" />
<meta name="DC.Format"
	content="html" />
<meta name="WMDI.AliasURL"
	content="" />
<meta name="WMDI.OldURL"
	content="http://fgranger.net1.nerim.net:8000/cgi-bin/pyblosxom.cgi" />
<meta name="DC.Subject"
	content="politique, politic, weblog, blog, carnet, news, " />
<meta name="WMDI.Category"
	content="" />
<meta name="WMDI.CategorySource"
	content="DMOZ" />
<meta http-equiv="pics-label" content='' />

<meta name="WMDI.Comments"
	content="N" />
<meta name="WMDI.Trackback"
	content="Y" />
<meta name="WMDI.TrafficMetric"
	content="" />
<meta name="WMDI.TrafficValue"
	content="" />
<meta name="DC.Coverage"
	content="" />
<meta name="DC.Date.Updated"
	content="" />
<meta name="WMDI.LastUpdateType"
	content="" />

<meta name="WMDI.InternalBlogroll"
	content="" />
<meta name="WMDI.ExternalBlogrollProvider"
	content="" />
<meta name="WMDI.ExternalBlogrollURL"
	content="" />
		<link rel="alternate" type="application/rss+xml" title="RSS" href="http://fgranger.net1.nerim.net:8000/cgi-bin/pyblosxom.cgi?flav=rss" />

<meta name="QSM.document" content="
DC.Language: EN
DC.Type: weblog
geo.Accuracy: 0
geo.City: Montrouge
geo.Country: FR
geo.Datum: WGS84
geo.Latitude: 48.813600
geo.Longitude: 2.313600
geo.Postal: 92120
" />


<style type="text/css" />
<!--
body {
	background-color: #6fafcf;
	color: #ffffcc;
}
small {
	font-size: 80%;
}
table.main {
	background-color: #cccccc;
	border: 1px solid #999999;
	color: #000000;
}
td.toolbar {
	background-color: #cccccc;
	color: #000000;
	font-family: Tahoma, Arial, Helvetica, sans-serif;
	font-size: 12pt;
	text-align: left;
}
td.statusblock {
	background-color: #eee;
	border: 1px solid #999999;
	color: #000000;
	font-family: Tahoma, Arial, Helvetica, sans-serif;
	font-size: 8pt;
	text-align: center;
}
td.menubar {
	background-color: #eee;
	color: #000000;
	font-family: Tahoma, Arial, Helvetica, sans-serif;
	font-size: 8pt;
	text-align: left;
}
td.statusblank {
	background-color: #cccccc;
	color: #cccccc;
	font-family: Tahoma, Arial, Helvetica, sans-serif;
	font-size: 8pt;
	text-align: center;
}
td.header {
	background-color: #cccccc;
	border: 1px solid #999999;
	color: #000000;
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: 12pt;
	font-weight: bold;
}
td.fwindow {
	background-color: #eee;
	border: 1px solid #999999;
	color: #000000;
	font-family: Tahoma, Arial, Helvetica, sans-serif;
	font-size: 8pt;
	text-addgn: left;
}
td.cwindow {
	background-color: #ffffff;
	border: 1px solid #999999;
	color: #000000;
	font-family: serif;
	text-addgn: left;
}
dd {
	margin-left: 0.5em;
}
code {
	background-color: #eeeeee;
	color: #000000;
	font-family: "Courier New", Courier, monospace;
	}
div.blosxomDayDiv {
	background-color: #fff;
	border: 1px solid #ddd;
	color: #000000;
	margin-top: 10px;
}
div.codeblock {
	margin-left: 2em;
}
div.codeblock2 {
	margin-left: 2em;
}
div.hcodeblock {
	background-color: #ffff77;
	margin-left: 5em;
	margin-top: 5px;
	margin-bottom: 5px;
}
div.hcodeblock2 {
	background-color: #ff7;
	margin-left: 5em;
	margin-top: 5px;
	margin-bottom: 5px;
}

blockquote {
    margin-right: 1em; 
    margin-left: 1em; 
    padding-left: 1em; 
    padding-top: 1em; 
    padding-bottom: 1em; 
    border: dashed 1px #ccf; 
    width: auto }

a:active, a:hover {
	background-color: #000066;
	color: #ffffff;
	text-decoration: underline;
}
blosxomDate {
	color: #009900;
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: 11pt;
	font-weight: bold;
}
blosxomTitle {
	color: #0000cc;
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: 10pt;
	font-weight: bold;
}
blue {
	color: #0000cc;
}
green {
	color: #009900;
}
orange {
	color: #ff9900;
}
red {
	color: #cc0000;
}
violet {
	color: #cc00cc;
}
yellow {
	color: #cccc00;
}
-->
</style>
</head>
<body>
<!--
#root http://fgranger.net1.nerim.net:8000
#static http://francois.granger.free.fr/static
-->
<!-- ibc -->
<table width="300" border="0" cellpadding="0" cellspacing="0">
   <tr>
     <td width="200" height="38" rowspan="2"><a href="http://www.iraqbodycount.org"><img src="$root/img/ibc_sh_grey.gif" alt="Civilian casualties update" width="200" height="38" border="0"></a></td>
     <td width="100"><a href="http://www.iraqbodycount.org"><img src="$root/img/ibc_sh_grey_blackmm.gif" alt="Civilian casualties update" width="100" height="16" border="0"></a></td>
   </tr>
   <tr>
     <td width="100" height="22" align="center" valign="top"><a href="http://www.iraqbodycount.org"><script language="JavaScript" type="text/javascript">
document.write("<img src='http://www.iraqbodycount.net/counters/ibc_b.gif" +
               "?" + Math.floor((new Date()).getTime()/900000) + "' " +
               "width='94' height='19' border='0' " +
               "alt='www.iraqbodycount.org'>");
</script></a></td>
   </tr>
</table>

<!-- ibc end -->
<table align="center" cellpadding="2" cellspacing="3" class="main" summary="Code Editor" width="95%">
<!-- Change this to your page title: -->
<tr>
<td class="header" colspan="5"><a href="$base_url" title="Root">$blog_title</a>&nbsp;&nbsp;&nbsp;<small>$blog_description</small></td>
</tr>

<!-- You could make these hyperlinks if you wanted to: -->
<tr>
<td class="menubar" colspan="5" nowrap="nowrap">
<a href="$url?flav=rss" title="RSS feed">RSS feed</a> &nbsp; &nbsp; 
<a href="$url?flav=rss2" title="RSS feed">RSS v2</a> <small>testing</small>&nbsp; &nbsp; 
<a href="$url?flav=lite" title="lite">Version lite</a> &nbsp; &nbsp; 
Vous ˆtes ici&nbsp;: $blog_title &nbsp; &nbsp; 
<script type="text/javascript" language="javascript" src="http://www.quicktopic.com/19/S7MRR6368nDUB.js"></script> <a href="http://www.quicktopic.com/19/H/S7MRR6368nDUB">Comments <script language="javascript">document.write("(" + ct_19_S7MR + ")");</script></a>
</td>
</tr>

<!-- I recommend using GIFs or PNGs with transparency (a mouseover effect might also be nice):
<tr>
<td class="toolbar" colspan="5">Add some toolbar-style icons here (usually 16&times;16 or 32&times;32).</td>
</tr>-->

<!-- Change these as is appropriate: -->
<tr>
<td class="fwindow" nowrap="nowrap" valign="top">
	<dl>
		<dt>About</dt>
			<dd>&middot; Fran&ccedil;ois Granger</dd>
			<dd>&middot; <a href="http://francois.granger.free.fr/">Home site</a><dd>
			<br />
		<dt>Catˆ©gories</dt>
			<dd>$categorylinks</dd>
			<br />
		<dt>Archives</dt>
			<hr>$calendar<hr>
	</dl>
	<dl>
		<dt>Political blogs</dt>
			<dd>&middot; <a href="http://www.thismodernworld.com/">Tom Tomorrow</a></dd>
			<br />
		<dt>Carnets politiques</dt>
			<dd>&middot; <a href="http://www.menteur.com/">Les chroniques du menteur</a></dd>
			<br />
		<dt>Blogs bilingues</dt>
			<dd>&middot; <a href="http://jemisa.editthispage.com/">Nothing and Some More</a></dd>
			<dd>&middot; <a href="http://www.climbtothestars.org/">Climb to the Stars!</a></dd>
			<br />
		<dt>Blogs franˆßais</dt>
			<dd>&middot; <a href="http://mediatic.blogspot.com/">mediaTIC</a></dd>
			<dd>&middot; <a href="http://www.francopee.com/carnet/">La Grande Rousse</a></dd>
			<dd>&middot; <a href="http://www.leweblog.com/0001021/">xtof</a></dd>
			<dd>&middot; <a href="http://elanceur.weblogger.com/">elanceur weblog (.fr)</a></dd>
			<br />
		<dt>Various nice blogs</dt>
			<dd>&middot; <a href="http://www.topgold.com/blog/">Underway in Ireland</a></dd>
			<dd>&middot; <a href="http://www.benhammersley.com/">benhammersley.com</a></dd>
			<dd>&middot; <A href="http://www.wordspy.com/">The Word Spy</A></dd>
			<dd>&middot; <A href="http://www.lazyweb.org/">lazyweb.org</A></dd>
			<dd>&middot; <A href="http://www.kunekt.com/">kunekt.com</A></dd>
			<dd>&middot; <A href="http://www.nowarblog.org/">nowarblog</A></dd>
			<br />
		<dt>PyBloxom</dt>
			<dd>&middot; <a href="http://wiki.subtlehints.net/moin/PyBlosxom">pyblosxom wiki page</a></dd>
			<dd>&middot; <a href="http://roughingit.subtlehints.net/pyblosxom" title="RoughingIT - pyblosxom">pyblosxom blog</a></dd>
			<dd>&middot; <a href="http://disco.ucsd.edu/blog/">Blapp</a> a blosxom editor</dd>
			<dd>&middot; <a href="http://francois.granger.free.fr/static/faqpyblosxom.htm">my PyBlosxom faq</a></dd>
			<dd>&middot; <a href="$url/computers/PyBlosxom/macosx.html" title="PyBlosxom & MacOS X">MacOS X</a></dd>
			<dd>&middot; <a href="$url/computers/PyBlosxom/plugin.html" title="Plug In and variables">Plug in</a></dd>
			<br />
		<dt>Tools for blogs</dt>
			<dd>&middot; <a href="http://www.blogosphere.us">blogosphere.us</a></dd>
			<dd>&middot; <a href="http://www.blogshares.com/">blogshares</a></dd>
			<dd>&middot; <a href="http://www.bloglet.com/">bloglet</a></dd>
			<dd>&middot; <a href="http://www.feedster.com/">feedster</a></dd>
			<dd>&middot; <a href="http://blizg.com/">blizg</a></dd>
			<dd>&middot; <a href="http://pages.joueb.com/jouebs.shtml">joueb.com</a> Liste de carnets francophones</dd>
			<dd>&middot; <a href="http://www.truthlaidbear.com/ecosystem.php">Ecosystem</a></dd>
			<dd>&middot; <a href="http://www.popdex.com/">popdex</a></dd>
			<dd>&middot; <a href="http://blogdex.media.mit.edu/">Blogdex</a></dd>
			<dd>&middot; <a href="http://www.daypop.com/top/">Daypop</a></dd>
			<dd>&middot; <a href="http://www.blogstreet.com/">Blogstreet</a></dd>
			<dd>&middot; <a href="http://www.myelin.co.nz/ecosystem/links.php">Linkings</a></dd>
			<dd>&middot; <a href="http://www.technorati.com">Technorati</a></dd>
			<dd>&middot; <a href="http://topicexchange.com/">Topic Exchange</a></dd>
			<dd>&middot; <A href="http://www.blogtree.com/" title="Blog Pedigree">BlogTree.com</A></dd>
			<br />
		<dt>Amis</dt>
			<dd>&middot; <a href="http://alussinan.org/">Alussinan</a></dd>
			<dd>&middot; <a href="http://jfavrefelix.free.fr/">Photo</a></dd>
			<dd>&middot; <a href="http://www.gros-et-nigaud.org/">gros-et-nigaud</a></dd>
	</dl>
		<hr>
	<dl>
		<dt>Referer</dt>
			<dd>$referrers</dd>
	</dl>
		<hr>
	<dl>
		<dt>Voisinages</dt>
			<dd><a href="http://blizg.com/profile/?domain=fgranger.net1.nerim.net">blizg</a></dd>
			<dd><a href="http://www.technorati.com/cosmos/links.html?rank=&url=fgranger.net1.nerim.net">Technorati</a></dd>
			<dd><a href="http://organica.us/sources?url_id=2507112">Organica</a></dd>
			<dd><A href="http://www.blogtree.com/blogtree.php?blogid=9737" title="Blog Pedigree">BlogTree.com</A></dd>
			<dd><form action="http://www.popdex.com/search/" name="search">Search <a href="http://www.popdex.com/" target="_new">Popdex</a>: <br /><input type="text" value="Misc..." name="query" />¬Ý<br /><input type="submit" value="Submit" /></form></dd>
			<p>&nbsp;<p><script language="javascript" type="text/javascript" src="http://rpc.blogrolling.com/display.php?r=3fc189fa749d95a2bc4a81f0f01b0df7"></script>
			<p><a href="javascript:void(rollpop=window.open('http://www.blogrolling.com/add_links_pop.phtml?u=http://fgranger.net1.nerim.net:8000/cgi-bin/pyblosxom.cgi&t=Misc...','rollit','scrollbars=no,width=475,height=350,left=75,top=175,status=yes,resizable=yes'));rollpop.focus();">Blogroll Me!</a>
			 I want to increase the value<br /> of my blog on <br />
			<a href="http://www.blogshares.com/blogs.php?blog=http://62.212.104.100:8000/cgi-bin/pyblosxom.cgi"><img src="http://www.blogshares.com/images/blogshares.jpg" alt="Listed on BlogShares" border="0" width="117" height="23" align="right" /></a><br />
			;-)
	</dl>
	<a href="http://geourl.org/near/alt.html?p=http%3A%2F%2Ffrancois.granger.free.fr%2Fblog&lat=&lon=&dist=50" title="Mes voisins ici bas">
	<img src="http://geourl.org/geourl.png" border=0 width=52 height=14 />
	</a>
	<hr>
</td>
<!-- This is your main content window: -->
<td class="cwindow" colspan="4" valign="top">
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.