[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] Still trying to get gnumed running under 2.6

From: Karsten Hilbert
Subject: Re: [Gnumed-devel] Still trying to get gnumed running under 2.6
Date: Mon, 20 Jun 2005 19:12:30 +0200
User-agent: Mutt/

On Mon, Jun 20, 2005 at 02:03:47PM +1000, Richard wrote:

> I used the --unicode-gettext=0 flag as running python won't let me 
> search on people. That method won't either:
> ===============================================
>  File "/usr/lib/python2.4/site-packages/Gnumed/business/", line 
> 836, in __normalize
>     normalized =    aString.replace(u'Ä'.encode('latin-1'), u'(Ä|AE|Ae|A|
> E)'.encode('latin-1'))
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 0: 
> ordinal not in range(128)
> ============================================
Well, as Sebastian pointed out the quick fix is to set the
default locale for GNUmed to "latin1". Which, of course, isn't
the Right Thing(tm) to do for Australia and elsewhere (though it
doesn't hurt any in this case).

The proper way would be to write a query generator for AU that
doesn't use weird accented stuff and plug it into the patient
searcher class.

GPG key ID E4071346 @
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

reply via email to

[Prev in Thread] Current Thread [Next in Thread]