review/rutil.py @ d6523b4269f8

webui: Add a signoff default value, prevent issue56
author Benoit Allard <benoit@aeteurope.nl>
date Tue, 27 Jul 2010 13:13:43 +0200
parents 96afc843f1a7
children (none)
from mercurial import encoding

def tolocal(s):
    return encoding.tolocal(s.encode('UTF-8'))

def fromlocal(s):
    return s.decode(encoding.encoding, 'replace')