review/rutil.py @ e62677ebd73d

web: always show the full changeset description
author Steve Losh <steve@stevelosh.com>
date Sat, 29 Jan 2011 19:00:39 -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')