Hello guys! First timer here and begginer on GO!
I am now working on a project where I have a XML that gets generated by PHC and my GO code must read that file, authenticate via Graph API and send an email with the contents of said XML. However, I am having a lot of trouble with encoding.
When I receive the email (for testing purposes) it is all out of format.
I've read that GO uses UTF-8 by default, but I the XML I receive is formated with iso-8859-1 and apparently (not quite sure) Graph API also "stamps" the email with a Windows-1252 encoding.
I am desperate because I can't solve this issue and i've tried for 2 whole days and even asked ChatGPT for help but it didnt do much.
Some help would be very much appreciated!