--- psiconv/trunk/program/psiconv/general.c 2004/01/28 20:18:54 191 +++ psiconv/trunk/program/psiconv/general.c 2004/02/02 20:43:04 192 @@ -34,6 +34,8 @@ { psiconv_u8 temp; int res; +#define TEMPSTR_LEN 80 + char tempstr[TEMPSTR_LEN]; if (enc == ENCODING_UCS2) { temp = character >> 8; @@ -92,6 +94,17 @@ fputs("Out of memory error\n",stderr); exit(1); } + } else if (enc == ENCODING_ASCII_HTML) { + if (character >= 0x80) { + snprintf(tempstr,TEMPSTR_LEN,"&#x%x;",character); + output_simple_chars(config,list,tempstr,enc); + } else { + temp = character; + if ((res = psiconv_list_add(list,&temp))) { + fputs("Out of memory error\n",stderr); + exit(1); + } + } } else if (enc == ENCODING_PSION) { temp = psiconv_unicode_to_char(config,character); if ((res = psiconv_list_add(list,&temp))) {