mdesalvo / RDFSharp

Lightweight and friendly .NET library for realizing Semantic Web applications
Apache License 2.0
121 stars 26 forks source link

Incorrect handling of surrogates in RDFModelUtilities.Unicode_To_ASCII #243

Closed mdesalvo closed 3 years ago

mdesalvo commented 3 years ago

Unit tests have discovered that RDFModelUtilities.Unicode_To_ASCII method improperly encodes surrogates as pairs of "\uXXXX" characters instead of a unique "\UXXXXXXXX". For example:

"This is a smiling face: 😃" => the unicode smile should be encoded as \U0001F603

mdesalvo commented 3 years ago

Addressed in a26b929 in test-suite branch. Will be merged in 2.26.1 during 2022.