API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Output Functions > IG_REC_output_codepage_get |
Returns code page being used during conversions by the functions IG_REC_util_codepage_to_unicode, IG_REC_util_unicode_to_codepage, IG_REC_document_write, IG_REC_output_direct_text_write. All supported code pages can be enumerated using IG_REC_output_codepage_first_get, IG_REC_output_codepage_next_get.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_output_codepage_get( LPSTR pCodePageName, AT_INT nBuferLength ); |
Name | Type | Description |
---|---|---|
pCodePageName | LPSTR | Buffer to receive a name of Code Page. |
nBuferLength | AT_INT | Length of the buffer. |
This function does not process image pixels.
Copy Code
|
|
---|---|
AT_ERRCOUNT ErrCount = 0; LPSTR lpszCodepage = 0; AT_INT iCodepageLen = AM_MAX_CP_NAME_LEN; lpszCodepage = (LPSTR) malloc(iCodepageLen); ErrCount += IG_REC_output_codepage_get(lpszCodepage, iCodepageLen); free(lpszCodepage); |
Maximal length of the code page name is AM_MAX_CP_NAME_LEN.