BCD and Binary are identical for states 0 to 9. However for a five-bit counter, the states 10 to 31 inclusive have a different representation in BCD vs Binary.
Your encoder requires five bits of binary 0 to 31, while a two digit decimal numeric display requires an encoder/decoder between the binary counter, and the decimal tow-digit display (0-3,0-9).
You could use a Hexadecimal display 0-9,A,B,C,D,E,F for the low order digit, but now we are back to the Hexadecimal rotary (or thumbwheel) switch I suggested a bunch of posts ago...