Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[iOS/IPadOS] Why does text containing ":" get url-encoded when pasted into editor? #7057

Closed Unanswered
travisnburton asked this question in Q&A
Discussion options

When pasting text where the first line contains : into an editor window, all text following the colon is url-encoded.

Example text without colon on first line:

text
encoding: none
foo bar baz

Normal result when pasted into editor:

text
encoding: none
foo bar baz

Example text with colon on first line:

text:
encoding: url
foo bar baz

Encoded result when pasted into editor:

text:%0Aencoding%3A%20url%0Afoo%20bar%20baz

This encoding does not happen when pasting text into the code-server terminal, it only happens when pasting into code-server editor windows.

I have no extensions installed, and all settings are default.

You must be logged in to vote

Replies: 3 comments 4 replies

Comment options

Interesting, any idea if it happens to you in Codespaces? I ask because it seems most likely an upstream issue with VS Code itself, if I had to guess. I tried to reproduce in code-server 4.93.1 in a brand new file called new but it worked as expected for me.

You must be logged in to vote
2 replies
Comment options

And to test I used ctrl+c ctrl+v in Firefox.

Comment options

It does seem to be a problem with VS Code, but i have no idea what it could be. I cannot replicate it in Codespaces.

Comment options

Apparently this is the way Apple has decided to treat strings containing a colon - https://stackoverflow.com/questions/77662557/how-do-you-avoid-copy-paste-content-with-a-coming-out-url-encoded-on-an-ipho

It's strange that i haven't been able to find any other conversations/issues about this here.

You must be logged in to vote
2 replies
Comment options

Very interesting!! Good to know, and nice find.

Comment options

Strange that it does not reproduce in Codespaces though, I wonder if they apply a workaround there.

Comment options

Resolved by disabling editor.pasteAs.enabled

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /