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

> I used the --unicode-gettext=0 flag as running python gnumed.py won't let me 
> search on people. That method won't either:
> ===============================================
>  File "/usr/lib/python2.4/site-packages/Gnumed/business/gmPerson.py", 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.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346


_______________________________________________
Gnumed-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnumed-devel

Reply via email to