[Mailman-Users] utf-8 error with all lists

Dimitri Maziuk dmaziuk at bmrb.wisc.edu
Mon May 13 13:28:22 EDT 2019


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/mailman-users/attachments/20190513/28c8b29d/attachment.sig>


More information about the Mailman-Users mailing list