review/rutil.py @ 8cfb4cb7d7aa

bundled/markdown2: escape broken HTML comments
author Steve Losh <steve@stevelosh.com>
date Mon, 12 Jul 2010 21:46:11 -0400
parents 1b9066798f87
children 96afc843f1a7
from mercurial import encoding

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

def fromlocal(s):
    return encoding.fromlocal(s).decode('UTF-8')