Mercurial > repo
view bin/toutf8 @ 3992:815f4ed87390
<oerjan> addquote <Taneb> kmc, I was trying to go to a sci-fi and fantasy society social, and I went to the wrong bar <Taneb> Wound up at my university\'s fetish society <Taneb> Didn\'t realise for an hour and a half
author | HackBot |
---|---|
date | Thu, 07 Nov 2013 23:57:04 +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'))