Re: pyblosxom 2.0 and utf-8 -- help needed

Asheesh Laroia <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
On Wed, 26 Mar 2008, Guntsche Michael wrote:

> On Mar 23, 2008, at 17:22, will wrote:
>> So the big problem is that ...  I don't know whether I understand how
>> people use PyBlosxom for non-english blogs.
>> 
>> Do you write your blog entries in utf-8?

Yup.

>> 
>> Do you write blog entries in some other kind of unicode and expect
>> PyBlosxom to do the right thing?

Nope.

>> What have you had to do to PyBlosxom 1.4.x to make sure it handles your
>> blog properly?

I haven't really paid attention, I'm afraid!

>> Is there anything else I should know in order to build test cases to
>> make sure everything is working correctly for PyBlosxom 2.0?
>> 
>
> Sorry for the late reply.
>
> Personally I write every entry in UTF-8. I although think that UTF-8 should 
> be the default encoding for pyblosxom 2.0. The only problem I see is that you 
> never know how the entries are saved in the textfiles. So even if everything 
> is set to UTF-8 in the config, a rogue text file may mess things up.
> I thought about adding something like #encoding UTF-8, iso8859-1 to the text 
> entries so you know what encoding they have. But I did not really like that 
> idea in the end.

I agree whole-heartedly with this sentiment.

The minimal support for Unicode pyblosxom 2 should have is assuming all 
text files are UTF-8.  I would be perfectly satisfied with this.

The next thing to add, given infinite time, would be the ability to set a 
global encoding in the pyblosxom config file.

I think that fighting encodings on a per-file basis is just too much of a 
losing battle to fight in this century.  So I agree with the "no 
#encoding metadata" sentiment.

-- Asheesh.

-- 
If you live long enough, you'll see that every victory turns into a defeat.
 		-- Simone de Beauvoir

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
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.