On Wed, Sep 18, 2002 at 10:14:35PM +0100, Robert de Bath wrote: > iconv() is _fairly_ easy to use, the problem isn't that's it's difficult > just that there's a lot you have to remember to do for a function that > appears (at first) to have a simple job.
It's easy to write a wrapper for the simple, common tasks. You almost never want to call iconv() directly from most code, unless you actually need to. > > //here is an example utf-8 formatter > BTDTGTTS. BTDPQKKD! (trans: what?) Obeying the locale's encoding is both good practice and an absolute requirement for most; outputting UTF-8 in all locales is simply wrong. It's certainly very bad advice. > But, you're converting utf-8 values that (strictly speaking) are out of > range _and_ assuming the wchar_t is a UCS character. Why does Mr. Lazy even care about ancient non-__STDC_ISO_10646__ systems? He's lazy! :) (But you should be using mb[r]towc anyway.) -- Glenn Maynard -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
