This is a very specific charset converter, but you should be able to rewrite the code to fit your own needs. It's meant to convert an XML file from UTF-8 to ISO-8859-1, nothing else (well maybe the other way around too, I made support for that anyway). * NOTE: If you need anything else but XML, you need to change "Content-Type". It should be very easy to automate, I was just too lazy (maybe you can use $_FILES['convertme']['type'] - Please send me the changes if you do fix it).\\ * NOTE: In the uploaded file I also replace 'encoding="UTF-8"' with 'encoding="ISO-8859-1"' (or whatever charset they choose), so you probably need to comment that out. Charset converter

Charset converter

Convert charset from:
Convert charset to: