list of text classes/encodings

Does anyone know where I can get a list of the four letter raw class codes for the different types of text?? Stuff like mac-roman, latin 1 or whatever it is. I know these

«class utxt» - Unicode
«class utf8» - 8-bit Unicode??

This question is related to the post “Text and I don’t get along”. The reason I need these is that i’d like to try coercing a variable name into different text classes to try and get it to work in javascript code with the “do script” command.

Any help with either posts would be much appreciated!!

Thanks
Matt

Hmmm… I think you better explain your problem with javascript.
To guess available encodings in your system you can use both Smile’s “textencodings” command or TEC.osax’s “TECGetEncodings”, but I think this won’t help you… :?: