diff --git a/mysys/charset2html.c b/mysys/charset2html.c index 55c39ae419d..96862ff16a1 100644 --- a/mysys/charset2html.c +++ b/mysys/charset2html.c @@ -93,9 +93,21 @@ static void print_cs(CHARSET_INFO *cs) ch[i].ctp & _MY_B ? "B" : "", ch[i].ctp & _MY_X ? "X" : ""); - printf("&#%d;",ch[i].uni); - printf("&#%d;",ch[i].low); - printf("&#%d;",ch[i].upp); + if ((ch[i].uni >= 0x80) && (ch[i].uni <= 0x9F)) + { + /* + Control characters 0x0080..0x009F are dysplayed by some + browers as if they were letters. Don't print them to + avoid confusion. + */ + printf("ctrlctrlctrl"); + } + else + { + printf("&#%d;",ch[i].uni); + printf("&#%d;",ch[i].low); + printf("&#%d;",ch[i].upp); + } printf("\n"); srt=ch[i].srt; }