And other than those things, isn't that really equivalent to what I was doing?
Yes, it's the same except where it's not.
Except that, it appears you are outputting where I was outputting \, and are those in fact equivalent?
So you still haven't fixed your bug. Start with that.
and are those in fact equivalent?
No. I guess that's yet another bug.
- You're not decoding your inputs. (Not yet fixed.)
- You're not encoding your outputs. (Not yet fixed.)
- You confuse 92 hex for 92 decimal. (Fixed by using the function I posted.)
- You're not outputting 7-bit clean as desired. (Fixed by using the function I posted.)