get the file encoding

Hello!
The system is AIX 5.3
Give please command or script to get the file encoding

What do you mean by "encoding". In Unix, one can usually use the "file" command, which reports a string associated with the sequence of bytes in said file.

$ file blah.gz
blah.gz: gzip compressed data