Please add inencoding argument
At present it is possible to specify the input and output encoding with "encoding", and to override the output encoding with "outencoding". However, I need to override the input encoding: I use pygments in my ~/.lessfilter script, and before feeding the input to pygments, I detect its MIME type, so that I can tell pygments the correct filter (the filename may not be enough, for example for an executable script with no suffix), and I decompress it if compressed, using zcat. I also detect the encoding of the file, and specify that.
Currently as a workaround I specify encoding=$detected_encoding,outencoding=UTF-8, as I know I will always use a UTF-8 terminal, but obviously that is not ideal.