nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] General question - unsupported charset conversion

2014-02-28 15:01:19
Sigh, IT'S THE SAME THING.  iconv() returns EILSEQ at a particular point
in your conversion buffer.  What do you do next?

In your example, emit a Pile Of Poo.

I know you're being flippant ... but it's a serious question.  Right now,
iconv() returns EILSEQ if you cannot convert an input character to the
target character.  It also does that if you have an invalid multibyte
sequence.  Based on _what you want to happen_, what, exactly, should be
done from a programming perspective?  Bail?  Substitute something?  Do
something else?

--Ken

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>