I\'m working on a project where I need to convert text from an encoding (for example Windows-1256 Arabic) to UTF-8.
How do I do this in Go?
I made a tool for myself, maybe you could borrow some idea from it :)
https://github.com/gonejack/transcode
This is the key code:
_, err = io.Copy( transform.NewWriter(output, targetEncoding.NewEncoder()), transform.NewReader(input, sourceEncoding.NewDecoder()), )