https://stackoverflow.com/questions/913869/how-to-change-the-default-encoding-to-utf-8-for-apache
Place AddDefaultCharset UTF-8 into /etc/apache2/conf.d/charset. In fact, it's already there. You just have to uncomment it by removing the preceding #.
Place AddDefaultCharset UTF-8 into /etc/apache2/conf.d/charset. In fact, it's already there. You just have to uncomment it by removing the preceding #.
sys.stdout=os.fdopen(sys.stdout.[buffer.]fileno(), 'w', encoding='utf8')