view bin/toutf8 @ 10100:b5fb9101f719

<moonythedwarf> le//rn moon//moon is often named the following: moonythedwarf moonythehuman moonheart08 moony moon__ computing and luxon, making porthellos a real pain
author HackBot
date Thu, 05 Jan 2017 19:40: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'))