X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fmarcdisp.h;h=fb0bab8a35413949ccc9c80a348db79cfd005019;hp=d7bbaa0367787d447603a24d5c8251891fab2c36;hb=8ceaeefe2e491935cba91f56007308be6e4996e6;hpb=1b7419b08b3ac1d58bc8a147a5a563174276e151 diff --git a/include/yaz/marcdisp.h b/include/yaz/marcdisp.h index d7bbaa0..fb0bab8 100644 --- a/include/yaz/marcdisp.h +++ b/include/yaz/marcdisp.h @@ -484,6 +484,20 @@ struct json_node; YAZ_EXPORT int yaz_marc_read_json_node(yaz_marc_t mt, struct json_node *n); +/** \brief check if MARC21 is UTF-8 encoded + \param charset that is given by user + \param marc_buf ISO2709 buf + \param sz ISO2709 size + \retval 1 is probably UTF-8 + \retval 0 is not UTF-8 +*/ +YAZ_EXPORT +int yaz_marc_check_marc21_coding(const char *charset, + const char *marc_buf, int sz); + +YAZ_EXPORT +int yaz_opac_check_marc21_coding(const char *charset, Z_OPACRecord *r); + YAZ_END_CDECL #endif