Originally Posted By: Glenn Barnas
What about binary-zero? Would that convert to nulls, which aren't supported? What about non-ascii chars? Need to be sure you're not in ASCII mode. Seems like there'd be plenty of potential pitfalls.

Glenn


Indeedy, which is my code converts to / from an array of bytes (well, integers) - in this form you can safely manage data whatever the content. A zero is just a zero.

It's a pretty ugly method and I cannot guarantee that it will continue to work in the future, but in the interim it's a workable solution for the few times that the requirement pops up.