[oe] [eglibc][iconv] How can I convert a text byte stream from UTF-8 to EUC-KR?

Joh Journeyer J. oosaprogrammer at gmail.com
Mon Apr 13 12:19:48 UTC 2015


Hi,

I need to be able to convert a text byte stream from UTF-8 format to
EUC-KR format.

I know I can do this with iconv().

So I tested as shown below :

------------------------------------------------
#include <iconv.h>

void some_func(void) {
  iconv_t it;
  it = iconv_open("UTF-8", "EUC-KR");
}
------------------------------------------------

The result was :

iconv_open returned -1
errno 22

I believe my yocto uses eglibc.

How am I supposed to do to make my eglibc work as expected?


I work with qualcomm modem SW. And the yocto I use is a part of it.
# cat /etc/issue
OpenEmbedded Linux \n \l
# cat /etc/version
LNX.LE.0.0-49022-9x40


Thank you very much in advance!
----------------------------------------
Journeyer J. Joh
o o s a p r o g r a m m e r
a t
g m a i l  d o t  c o m
----------------------------------------



More information about the Openembedded-devel mailing list