DEC had boards like that for going from TTL to RS232
as modules and
for current loop (TTY) to RS232 or the other way around. There were
a lot of "things" that often had oddball interfaces like Ham radio
tranceivers that could be driven by computer but only had serial TTL.
You can use the good old max 232 and 5 1?F caps.