Encoding rule