mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-10 03:54:54 -06:00
DeXml issue...
git-svn-id: svn://ultimatepp.org/upp/trunk@923 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
fff598768c
commit
e315c7e30d
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ String DeXml(const char *s, byte charset)
|
|||
else if(*s == '&') result.Cat("&");
|
||||
else if(*s == '\'') result.Cat("'");
|
||||
else if(*s == '\"') result.Cat(""");
|
||||
else if((byte)*s < ' ') result.Cat(NFormat("&#x%02x;", (byte)*s));
|
||||
else if((byte)*s < ' ' && *s != '\n') result.Cat(NFormat("&#x%02x;", (byte)*s));
|
||||
else if(!(*s & 0x80) || charset == CHARSET_UTF8) result.Cat(*s);
|
||||
else result.Cat(ToUtf8(ToUnicode(*s, charset)));
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue