hezral / clips

Multi format clipboard manager with extra features
GNU General Public License v3.0
39 stars 1 forks source link

Inconsistent encoding #25

Closed m93a closed 2 years ago

m93a commented 2 years ago

Steps to reproduce:

  1. copy a word with diacritics, for example “žouželení”
  2. open Clips, see that “žouželení“ displays correctly
  3. double-click žouželení in Clips
  4. paste it elsewhere and see “žouželení” in its stead
hezral commented 2 years ago

Thanks for reporting this.

May i know is it a plaintext or html clip type? Hover on the app icon in the clip item to see.

I just tested with both types and it pasted the same text, not žouželení which app did you paste the text in?

Also may i know what version of Clips are you running?

m93a commented 2 years ago

Oh, you're right, the bug is somewhat harder to reproduce than I initially thought. More precise steps:

  1. Open a chrome-based browser (tested in Brave and Chromium, as well as the Spotify app)
  2. Type/paste a piece of text with diacritics into a non-formated input, eg. the address / search bar
  3. Before copying the text, make sure it's not already in your clips
  4. Copy the text, it will appear in Clips as a correct-looking plaintext clip
  5. Double-click the clip and try to paste it elsewhere

I'm on elementary 6 (based on Ubuntu 20.04.3), using Clips 1.0.3 installed via the AppCenter. Brave browser was installed via a Debian package, Chromium via a snap and Spotify via flatpak.


the bug reproduced on video

hezral commented 2 years ago

I've found that the browser URL field tries to convert the texts sometimes. I'm not sure this is something I can fix/control. I tried in Chromium and it doesn't happen if i used plaintext copy. if its non-plaintext then this happens.