Page 1 of 1

create characters from unicode sequence

Posted: 26 Aug 2017, 17:29
by zocka
My JSON parser perceives unicode escape sequences (\uxxxx) of course as single characters. However I would like to display the actual character which seems not possible to me right now. Code like "\uxxxx" yields as "Incorrect escape sequence".
I could imagine something like

Code: Select all

TextLib {
	Ord :: Text => Integer
	Chr :: Integer => Text
	OrdUnicode :: Text => Text
	ChrUnicode ::Text => Text
}
(The first two of course unrelated to this issue, but probably handy).

Is there some existing way of doing this?