review/rutil.py @ 4d308e5f132c

web: fix summary overflows

fixes #60
author Steve Losh <steve@stevelosh.com>
date Thu, 27 Jan 2011 19:01:49 -0500
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')