Skip to content

Cuttext: No way to detect encoding (utf8 or latin1) #174

Description

@nob13

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions