X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ficonv_encode_marc8.c;h=e05874f8d2565a2a7c416af49f108fa7a6360552;hp=e8434ffb198395d5d8c906ed908d54ec5db2ed03;hb=b9e057ce1b31f4cef4364de7c36b5c119cc94cc3;hpb=0c46d2e66bdeea1600e700124a81a5d0a65d349e diff --git a/src/iconv_encode_marc8.c b/src/iconv_encode_marc8.c index e8434ff..e05874f 100644 --- a/src/iconv_encode_marc8.c +++ b/src/iconv_encode_marc8.c @@ -72,6 +72,11 @@ static unsigned long lookup_marc8(yaz_iconv_t cd, size_t utf8_outbytesleft = sizeof(utf8_buf)-1, r; int error_code; + if (x <= ' ' && x != 27) + { + *page_chr = ESC "(B"; + return x; + } r = yaz_write_UTF8_char(x, &utf8_outbuf, &utf8_outbytesleft, &error_code); if (r == (size_t)(-1)) {