That function receive a complete line of the actual file to be cleaned then is supposed to return a cleaned string.
The problem is that if I read the original file, I get strange results like char ™ is treated as "= and those chars are copied to the return string. But if I cut and paste the entire content in a new text file, everything is working properly, the ™ char is being removed from the string.
I'm working with VS2015 but I tried with Geany with same results.