I'll answer with experience of using Aliexpress Omron type encoders
www.aliexpress.com/w/wholesale-omron-rotary-encoder.html
, which are about less than a tenth of the price of the ones you mentioned, it's nice if you mention parts you can provide a link, saves time trying to search and ensures the correct component is being discussed.
With an optocoupler you will need to ensure the optocoupler is fast enough and the encoder can drive the optocoupler's led hard enough.
If the encoder is true TTL output or open collector output it should be fine.
Personally I've just used simple buffers, 74hc540/541, as I have a couple of tubes of them.
Another option would be to use the differential output of the encoder and connect that to a differential line receiver, such as
www.futurlec.com/Linear/26LS32pr.shtml
.
The schematics for the 7c81 are available,
forum.linuxcnc.org/media/kunena/attachments/481/7c81sch.zip
, one of the sheets shows the input circuitry.
No doubt Pete from Mesa will chime in.