DtMmdb: add UTF-8 encoding for nbsp.
This commit is contained in:
@@ -652,7 +652,10 @@ DocParser::read_data(istream &input, ostringstream &output)
|
|||||||
c = '&' ;
|
c = '&' ;
|
||||||
else
|
else
|
||||||
if (!strcmp(tmpbuf, "nbsp")) // non-break space
|
if (!strcmp(tmpbuf, "nbsp")) // non-break space
|
||||||
|
{
|
||||||
|
if (MB_CUR_MAX > 1) output << 0xC2;
|
||||||
c = (char)0xA0;
|
c = (char)0xA0;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
c = ' ';
|
c = ' ';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user