view bin/toutf8 @ 10638:2f9aecbe683d

<rdococ> le//rn ice//I.C.E. stands for Imaginary Christian Era. It covers the forgotten period of time that is not on the real axis.
author HackBot
date Wed, 12 Apr 2017 21:44:58 +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'))