Merge pull request #36 from Herringway/master
fix emitting of unicode characters >0xFFFF
This commit is contained in:
commit
e5d8c86395
|
@ -1401,7 +1401,7 @@ struct ScalarWriter
|
|||
{
|
||||
//Write an escaped Unicode character.
|
||||
const format = c <= 255 ? "\\x%02X":
|
||||
c <= 65535 ? "\\u%04X": "\\u%08X";
|
||||
c <= 65535 ? "\\u%04X": "\\U%08X";
|
||||
formattedWrite(appender, format, cast(uint)c);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue