On Tue, 12 Aug 2008, Chris Young wrote:
On Tue, 12 Aug 2008 00:58:37 +0100 (BST), John-Mark Bell wrote:You'll be able to LOG(()) it, at least. However, the man page for iconv_open states the following: EINVAL The conversion from fromcode to tocode is not supported by the implementation. so I'd expect it to actually return what the documentation says. Here's a standalone testcase you can try:Failed, errno == 0 ()
Oh joy. That's so unhelpful it's not funny.
Just out of curiousity I removed the //TRANSLIT, and the function then returns success.
That doesn't surprise me.
Where does that character set come from anyway? I'm actually set to use ISO-8859-15.
It's the form submission encoding, which has nothing whatsoever to do with your current locale. //TRANSLIT is a non-standard extension which, if supported, will transliterate unencodable characters with something else. We do fall back to the non-transliterated version if at all possible. Unfortunately this relies upon the iconv implementation actually conforming to the documented functionality. It appears that the one you're using doesn't. At present, I'm unable to think of a suitable workaround.
J.
