[Zope] How do I index documents containing accents with ZCata
log?
Michel Pelletier
michel@digicool.com
Thu, 6 Jan 2000 11:12:09 -0500
> -----Original Message-----
> From: Farzad Farid [mailto:farzy@via.ecp.fr]
> Sent: Thursday, January 06, 2000 4:53 AM
> To: zope@zope.org
> Subject: [Zope] How do I index documents containing accents with
> ZCatalog?
>
>
> I was very disappointed on my first try with ZCatalog when I
> noticed that
> it cannot properly index documents containing european accents.. The
> search engine I installed is of course unusable because it
> cannot find a
> large number of words in the indexed documents.
> I am running Zope 2.0.1, Python 1.5.2 and to install
> ZCatalog I followed
> the instructions in the ZCatalog howto.
>
> How can I correct this problem?
Try using the z2.py's -L flag to set the locale that the process runs
in. In UNIX, you can find out more about locale by doing a 'man locale'
(if you have locale installed, of course, any fairly modern unix should,
linux and freebsd most definatly).
By default, Zope starts up with no special locale settings. By setting
a locale option, certain C and Python functions and methods change
behavior to make more sense for european and other languages.
-Michel