I am using a cut text handler with nvnc_set_cut_text_fn.
Unfortunately, there seems no way to detect, in which encoding the cut text is. Remmina is using legacy cut text and sends latin1 encoding, while NoVnc uses the extended clipboard encoding and sends UTF8.
As a workaround, i check if the string is valid utf8 encoding, then take utf8, otherwise try to decode latin1 to utf8.
I am using a cut text handler with
nvnc_set_cut_text_fn.Unfortunately, there seems no way to detect, in which encoding the cut text is. Remmina is using legacy cut text and sends latin1 encoding, while NoVnc uses the extended clipboard encoding and sends UTF8.
As a workaround, i check if the string is valid utf8 encoding, then take utf8, otherwise try to decode latin1 to utf8.