iconv fuction in C-program returns EINVAL error
Posted: Tue Sep 21, 2010 10:09 pm
Hi!
I have compiled a C-program on z/os using the "iconv" function for UTF-8 to ASCII conversion. The program is compiled and linked to iconv. But when I run the program and invoke the iconv_open("IBM-367","UTF-8") I am getting an EINVAL error ("conversion is not supported"). The program runs also on Windows and Linux. What am I doing wrong with the parameters?
Regards
Klemens
I have compiled a C-program on z/os using the "iconv" function for UTF-8 to ASCII conversion. The program is compiled and linked to iconv. But when I run the program and invoke the iconv_open("IBM-367","UTF-8") I am getting an EINVAL error ("conversion is not supported"). The program runs also on Windows and Linux. What am I doing wrong with the parameters?
Regards
Klemens