I use Eventghost, Tasker and Rainmeter to display information from my phone on my desktop, and vice-versa. In one of these desktop "widgets", I display information from a text file sent from my phone to EventGhost via AutoRemote. This text file is a log of things happening on my phone.
The problem then is that this text file is encoded in UTF (presumably UTF-8). This causes a problem for some lines containing a degree symbol (°). In the desktop widget, "°" becomes "°". This problem goes away if I manually resave the file using ANSI encoding. The updating of the text file in question is an event in itsself, so it's easy to have EventGhost respond to this. I now need a Python script that converts this file, encoding it in ANSI rather than UTF.
I've done some Googling and found that this should be possible, but I have no experience with Python and didn't manage to implement the suggestions I found online.
Any and all help highly appreciated.
Septik
EDIT: I figured out a solution that didn't involve the converting I thought necessary. I'll leave this thread anyways in case someone else needs a script like this without knowing they do.