This is the output of my code - Linux - gcc which are to convert pdf string 12ŠĐČĆ34 to cp1250....The file is on Notepad++ with encoding utf8 without BOM.
size_t retIconv = iconv(conv, (char**)&pIn,(size_t*)&strLenIn, (char**)&pOut, (size_t*)&strLenOut);
For printing it is used:
for (int i = 0; (i < temp ) && tempAmp[i]; i++)
printf("0x%04x\n", tempAmp[i]);