Mercurial > repo
view bin/toutf8 @ 11943:0ab22b542e31 draft
<b_jonas> `` /bin/sed -i \'s/3\\./& She is her own grandpa./\' wisdom/kmc
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Tue, 17 Sep 2019 19:57:39 +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'))