Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The problem with inserting Cyrillic characters from the clipboard #368

Open
Divanovi4 opened this issue Feb 16, 2025 · 1 comment
Open
Labels
bug Something isn't working clipboard

Comments

@Divanovi4
Copy link

Divanovi4 commented Feb 16, 2025

If you cut or copy text to the clipboard, for example:
dssdgsdgdssdgяячячпыввыпвы
then, when it is subsequently inserted, the text takes the following format:
dssdgsdgdssdg\u044f\u044f\u0447\u044f\u0447\u043f\u044b\u0432\u0432\u044b\u043f\u0432\u044b

To reproduce. Steps to reproduce the behavior:
Server start command:

xpra start :10 --bind-tcp=0.0.0.0:9876 --exit-with-children=yes --start-child="mousepad" --html=on \
   --encodings=no-rgb24,no-rgb32 --video=no --min-quality=60 --bell=no --mdns=no --speaker=no \
   --pulseaudio=no --audio=no --speaker=off --notifications=yes --webcam=no --microphone=off --av-sync=no \
   --opengl=no --daemon=no --clipboard=yes --clipboard-direction=both --remote-logging=no \
   --keyboard-backend=ibus --keyboard-layout=ru --keyboard-variant=nodeadkeys

config content /etc/xpra/html5-client/default-settings.txt

keyboard_layout = us
blocked-hosts = xpra.org,www.xpra.org
min-quality = 10
min-speed = 50

System Information
Server OS: Debian 12 Bookworm
Client OS: Windows 10 22H2
Xpra Server Version: 6.3 r37394
Client Browser: Brave 1.75.178

@totaam totaam added bug Something isn't working clipboard labels Feb 16, 2025
@totaam
Copy link
Collaborator

totaam commented Feb 17, 2025

--speaker=no --pulseaudio=no --audio=no --speaker=off

Same as just --audio=no.

--clipboard=yes --clipboard-direction=both

This is the default and therefore does nothing.

Can you enable clipboard debugging from the connect dialog and post the javascript console events when you copy?

It looks like we may need to unescape the clipboard data, but I'm not sure which even is firing with your browser / OS / network combination.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working clipboard
Projects
None yet
Development

No branches or pull requests

2 participants