Foreign Characters shows up ??? in variable - Forum

Forum Navigation
You need to log in to create posts and topics.

Foreign Characters shows up ??? in variable

Hi VisualNeo experts!

I hope you can help me with my problem. I'm building an app that includes foreign languages such as Chinese or Japanese but whenever I added  this in the text input object it turns to ???? in the variable so there's no way for me to properly present it.

I saw some suggestions that includes calling this function but didn't really work for me. Any suggestions?
{NeoBook Function}

Version=5.70
Language=JScript
Param=[%acc]|Variable|Action To Do
Param=[%str]|Variable|Text To Process
{End}
ac = nbGetVar("[%acc]");
st = nbGetVar("[%str]");

if (ac == "A") {
for(var c, i = -1, l = (st = st.split("")).length, o = String.fromCharCode; ++i < l;
st = (c = st.charCodeAt(0)) >= 127 ? o(0xc0 | (c >>> 6)) + o(0x80 | (c & 0x3f)) : st
);
}
else {
for(var a, b, i = -1, l = (st = st.split("")).length, o = String.fromCharCode, c = "charCodeAt"; ++i < l;
((a = st[c](0)) & 0x80) &&
(st = (a & 0xfc) == 0xc0 && ((b = st[i + 1][c](0)) & 0xc0) == 0x80 ?
o(((a & 0x03) << 6) + (b & 0x3f)) : o(128), st[++i] = "")
);
}

st = st.join("");

nbSetVar( '[%str]',st )

 

Hello,

You have to keep in mind that VisualNeoWin is not a unicode capable enviroment.

So you can only work inside the ASCII/ANSI charater set.

Regards

Hans-Peter