From: W. Trevor King Date: Sat, 26 Jun 2010 22:33:23 +0000 (-0400) Subject: Work around garbled utf-8 for Vallieres X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=74ba2a9f328bcbdfd618dfda349e1e22037ce758;p=sitecorepy.git Work around garbled utf-8 for Vallieres --- diff --git a/sitecore/prof/export_mysql.py b/sitecore/prof/export_mysql.py index 973025a..c629c46 100644 --- a/sitecore/prof/export_mysql.py +++ b/sitecore/prof/export_mysql.py @@ -169,6 +169,8 @@ Where the relevant categories are first_middle=prof['firstname'], last=prof['lastname'], ) + if p.name.last.encode('hex') == '56616c6c69e8726573': + p.name.last = u'Valli\xe8res' p.title = prof['position'] if prof['position1'] != None: p.title += ', %s' % prof['position1']