Output of PDF to CP1250 character conversion on Linix

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.

Is that OK?

in: 12ŠĐČĆ34
0x0031
0x0032
0xffffffc5
0xffffffa0
0xffffffc4
0xffffff90
0xffffffc4
0xffffff8c
0xffffffc4
0xffffff86
0x0033
0x0034
out: 12▒▒▒▒34
0x0031
0x0032
0xffffff8a
0xffffffd0
0xffffffc8
0xffffffc6
0x0033
0x0034

I am using iconv in my coding.

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]);
Last edited on
Topic archived. No new replies allowed.