mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
a3847d21d5
In Javascript, characters are 16-bits wide. It does not understand surrogates as characters. From Wikipedia (http://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane): "The High Surrogates (U+D800–U+DBFF) and Low Surrogate (U+DC00–U+DFFF) codes are reserved for encoding non-BMP characters in UTF-16 by using a pair of 16-bit codes: one High Surrogate and one Low Surrogate. A single surrogate code point will never be assigned a character."" The main offender seems to be \uD835 as a stand alone character, which would be the first 16-bit character of a blackboard bold character (http://www.fileformat.info/info/unicode/char/1d400/index.htm). Something must be going on client side that is screwing up the encoding and splitting the two 16-bit characters so that \uD835 is standalone. |
||
---|---|---|
.. | ||
sharejs | ||
DiffCodec.coffee | ||
DispatchManager.coffee | ||
DocOpsManager.coffee | ||
DocumentManager.coffee | ||
Errors.coffee | ||
HttpController.coffee | ||
LockManager.coffee | ||
Metrics.coffee | ||
mongojs.coffee | ||
PersistenceManager.coffee | ||
ProjectManager.coffee | ||
RedisKeyBuilder.coffee | ||
RedisManager.coffee | ||
ShareJsDB.coffee | ||
ShareJsUpdateManager.coffee | ||
TrackChangesManager.coffee | ||
UpdateManager.coffee |