I am querying a json which is returned with invisible characters at the beginning specifically 0xef, 0xbb, 0xbf in UTF8, I have tried replacing them in string from with replace with the code:
clean = replace(unclean, “ï”=>“”)
clean = replace(clean, “»”=>“”)
clean = replace(clean, “¿” =>“”)
I am wondering what the best way to remove these characters is?