On 5/13/19 10:19 AM, Mark Sapiro wrote:
> On 5/13/19 7:46 AM, Jason Morrill wrote:
>>

>> It appears that lowercase does return an apparent properly lowercased string 
>> of letters. So, I'm uncertain why the hand-edited code would function 
>> differently.
> 
> 
> This is what we were unable to solve in the original thread starting at
> <https://mail.python.org/pipermail/mailman-users/2019-March/084241.html>
> for 10 posts and then continuing at
> <https://mail.python.org/pipermail/mailman-users/2019-March/084266.html>
> for another 13 posts.

Just pipe it through

lambda fixstr s : return unicodedata.normalize('NFKD',
             s.decode('utf-8')).encode('ascii','ignore'))

or something along those lines first and be done with it.

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to