|From||John R. McPherson|
|Date||Fri, 17 Mar 2006 09:56:13 +1300|
|Subject||Re: [greenstone-users] encoding again|
|On Thu, Mar 16, 2006 at 07:46:20PM +0100, jens wille wrote:
> hi john!
> John R. McPherson [16.03.2006 19:30]:
> > If you are using the XML::Parser module that came with
> > greenstone, then you could try removing it and installing the
> > version that comes with your linux distribution.
> no, i already (re-)moved greenstone's to use my site's modules.
> > The problem I've noticed with perl5.8 seems to be that perl 5.8
> > has much better unicode support, but for backwards compatibility
> > assumes that input/output streams are in iso-8859-1/Latin and
> > converts it (!). "use encoding ':utf8'" is supposed to fix that,
> > but doesn't work with perl5.6.
> i could try that, thanks!
> > Right, well that sounds like a bug in the ensure_utf8() function
> > then. Which version of greenstone are you using? Perhaps you
> > could email me a sample input document that causes this.
> i'm using v2.62, but also tested with v2.63. sample document attached.
You can force an encoding for all files for a plugin with the
It's a bit difficult to find out what encoding greenstone guesses - I'll