>> Just read in and DON'T convert on input; just convert ONCE on output. > >So then the internal strings are varying encodings, including ones with >NUL bytes?
Yes. Although it seems like in practice nobody uses encodings that contain NUL bytyes. Like I said, fixing that would be tough. --Ken