/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data
+ * Copyright (C) 1995-2013 Index Data
* See the file LICENSE for details.
*/
/**
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))
{