X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fmarcdisp.c;h=ad9eed6920bf4e0adeb0624c93067118cc3671b4;hp=12ecb388ec6047a9b2764aa511e516d19ce2f997;hb=6d59a642cb7cd71df249fc4ecf5928ea79c7038c;hpb=a3e400f4aca554102ee4c84082dcf8f7244ff6d4 diff --git a/src/marcdisp.c b/src/marcdisp.c index 12ecb38..ad9eed6 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -464,6 +464,15 @@ static size_t cdata_one_character(yaz_marc_t mt, const char *buf) } return 1; /* giving up */ } + else + { + int error = 0; + size_t no_read = 0; + (void) yaz_read_UTF8_char((const unsigned char *) buf, strlen(buf), + &no_read, &error); + if (error == 0 && no_read > 0) + return no_read; + } return 1; /* we don't know */ }