This is an issue with the module underpinning qewd-up - mg-dbx. Current this module offers native support for 8-bit ASCII and UTF8 encoded Unicode. Problems arise when mg-dbx comes across raw Unicode data in the DB Server.
For example, consider the following two global nodes. The two strings are actually the same but one (utf16) is in raw 16-bit Unicode whereas the second (utf8) is the same but encoded as UTF8.
USER>s ^CM("utf16")="abc"_$c(1488,1489,1490)_"abc"
USER>s ^CM("utf8")=$zcvt("abc"_$c(1488,1489,1490)_"abc","o","utf8")
Turning to JavaScript/mg-dbx using the UTF8 character encoding.
var result = db.get("^CM", "utf8");
db.set("^CM", "new", result);
Because mg-dbx is trading in UTF8, nodes ^CM("utf8") and ^CM("new") will be the same. However, the same will not be true for the following code.
var result = db.get("^CM", "utf16");
db.set("^CM", "new", result);
The upshot is that mg-dbx will need a bit of work in order to natively support Unicode data held in the DB Server.
I recognize that this needs to be done so it will definitely go on the TODO list ...
Chris.