X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fmarcdisp.h;h=fb0bab8a35413949ccc9c80a348db79cfd005019;hp=62266d2458b491c8ae192a260880e848fcaa2418;hb=30af0a1ebbea75c3e757eb03d3f988c61fce8511;hpb=725b07a551ac42b73d3b621e6a9b696cd13f42d0 diff --git a/include/yaz/marcdisp.h b/include/yaz/marcdisp.h index 62266d2..fb0bab8 100644 --- a/include/yaz/marcdisp.h +++ b/include/yaz/marcdisp.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2013 Index Data. + * Copyright (C) Index Data. * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -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