Mercurial > repo
view bin/toutf8 @ 4607:c528f5d9ba11
<oerjan> sed -i \'s/hg repository/web-viewable filesystem repository/\' bin/url
author | HackBot |
---|---|
date | Sun, 20 Apr 2014 22:40:23 +0000 |
parents | e037173e0012 |
children |
line wrap: on
line source
#!/usr/bin/python import sys import chardet x = sys.stdin.read() enc = chardet.detect(x)['encoding'] sys.stdout.write(x.decode(enc).encode('UTF-8'))