I try to set an emoji like this to a node predicate.
This character is converted to encoded string in JSON “\uD83D\uDE00”
{
set {
<0x1f> <post-text> "\uD83D\uDE00" .
}
}
After executing above mutation I get the following:
I also checked the returned text in browser and clearly Dgraph corrupts encoded string values.
"post-text": "\uFFFD\uFFFD",
This is the value I get. That is why smiley is shown as question marks in the browser.
Is this a bug or am I doing something wrong?