view bin/toutf8 @ 11047:5c616f9ddd9b

<__kerbal___> learn -1 would like you to know that its square root is not a figment of its imagination.
author HackBot
date Wed, 28 Jun 2017 13:57:46 +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'))