1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

DtMmdb: add UTF-8 encoding for nbsp.

This commit is contained in:
Liang Chang 2021-11-16 05:55:37 +08:00
parent dd4431719f
commit a16ba22f1a

View file

@ -652,7 +652,10 @@ DocParser::read_data(istream &input, ostringstream &output)
c = '&' ;
else
if (!strcmp(tmpbuf, "nbsp")) // non-break space
c = (char)0xA0 ;
{
if (MB_CUR_MAX > 1) output << 0xC2;
c = (char)0xA0;
}
else
c = ' ';