Encoding detection and selections calculation