Copying Cyrillic URLs in Google Chrome and Firefox

·2 min read·paskov
Copying Cyrillic URLs in Google Chrome and Firefox

While using Google Chrome, I encountered unexpected behavior when copying and pasting URLs containing Cyrillic characters.

When I pasted a copied URL, the non-ASCII characters in its path appeared as percent-encoded sequences.

Further testing revealed the same behavior in Firefox.

Percent-encoded URLs copied from Google Chrome and Firefox

Percent-encoded URLs copied from Google Chrome and Firefox

My research led me to Issue 68718, which had been marked WontFix with the following explanation:

Links on Wikipedia itself are a red herring, as comment 50 notes – they’re escaped in the page source. The actual issue here is demonstrated by the link in comment 0. We escape URLs when copying them. This behavior matches Firefox 4 (by default) and Safari 5, though not IE9.

We added this behavior on issue 2820 to fix a variety of problems in languages like Japanese. Because those problems resulted in users unable to navigate to the pasted links, whereas this issue seems to be solely about cosmetics (in that escaped URLs are ugly and hard to read), preserving that behavior change seems like the more important thing to do.

Workarounds

At the time of writing, there were a few workarounds:

  • Before copying the URL, add a character at the end, then delete it. The copied URL should then retain its Cyrillic characters when pasted.
  • Use the COPY URL extension.
  • Use a different browser. Microsoft Edge on Windows and Safari on macOS produced readable Cyrillic URLs.

Featured image: Wallpaper Cave

Comments 1

  1. Evgeny

    Thank you! It also affects Mozilla.