So the only way I can see how you can do this on Linux would be to write a method that takes that string & returns a suitable encoding object by doing “select case” through a lot of them and their names
I’m not sure why this one is OS X only since enumerating all the Internet Encoding names and returning the matching Encoding object should be ablaut all thats required