How can I convert a text between different encodings?

Actually, we have the TEC osax. This is an example:

TECConvertText "cåspita" fromCode "x-mac-roman" toCode "iso-8859-1"

Smile, from Satimage Software, provides also a “converttext” command.