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:
parent
dd4431719f
commit
a16ba22f1a
1 changed files with 4 additions and 1 deletions
|
@ -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 = ' ';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue