mirror of
https://github.com/tbluemel/rtf.js.git
synced 2026-11-30 16:47:59 +01:00
handle unicode characters correctly
This commit is contained in:
@@ -1777,7 +1777,7 @@ RTFJS.Document.prototype.parse = function(blob, renderer) {
|
||||
if (param < 0 || param > 65535)
|
||||
throw new RTFJS.Error("Invalid unicode character encountered");
|
||||
|
||||
appendText(cptable[parser.codepage].dec[param]);
|
||||
appendText(String.fromCharCode(param));
|
||||
parser.state.skipchars = parser.state.ucn;
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user