Mercurial > repo
view bin/toutf8 @ 528:e6f972a599eb
<quintopia> addquote <shachaf> `delquote 844 <HackEgo> *poof* <shachaf> Ah, densley pcaked decimel. <shachaf> TAKE THAT, DENSLEY PCACKED DECIBELS!
author | HackBot |
---|---|
date | Fri, 15 Jun 2012 02:56:27 +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'))