view bin/toutf8 @ 11288:9613519b554c

<int-e> learn 8/8/8/8/8/8/8/8 is an empty chess board in FEN notation.
author HackBot
date Sat, 30 Dec 2017 16:57:14 +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'))