Mercurial > repo
view bin/toutf8 @ 10300:a7b447e7ad93
<oerjan> slwd tanebventions: math//s;locale;algebraic geometry, locale;
author | HackBot |
---|---|
date | Thu, 16 Feb 2017 18:24:13 +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'))