When attaching a UTF-8 encoded XML file to a Sales Invoice and sending it via email, the recipient receives the file without the special characters, which invalidates the document since these are signed files.
For now, I’ve resolved it using monkey patching in a custom app, but I’d like to know if I can contribute by submitting a PR in Frappe.
This issue is causing problems with Electronic Billing system in Costa Rica for invoices created using ERPNext, since the billing has special accent characters encoded in the XML.
When sending the invoice by mail from ERPNext, and attaching the signed XML files, the default main function in Frappe is replacing the UTF-8 accent characters in the XML (2 bytes), with plain ASCII characters (1 byte), invalidating the signature and causing systems to reject the XML files.
@GeraldiMejiaS, could you please post your proposed solution and where in Frappe framework this is happening, so others with the same problem can use this workaround?