Jump to content
Squid

Copying from forum adds hidden characters

12 posts in this topic Last Reply

Recommended Posts

Posted (edited)

@jonp

 

Is there anything you can do about copying and then pasting from the forum winds up adding more often than not hidden characters, etc that cause nothing but problems throughout the forum.

 

eg:

https://forums.unraid.net/topic/77813-plugin-linuxserverio-unraid-nvidia/?page=25&tab=comments#comment-735664

https://forums.unraid.net/topic/79012-support-linuxserverio-openvpn-as/?page=51&tab=comments#comment-734550

https://forums.unraid.net/topic/78929-docker-image-corrupt/?tab=comments#comment-732967

https://lime-technology.com/forums/topic/38582-plug-in-community-applications/?page=85&tab=comments#comment-669454

https://lime-technology.com/forums/topic/38582-plug-in-community-applications/?page=84&tab=comments#comment-664991

 

and it goes on and on.  I *could* understand if copying / pasting from normal text, but this also affects code blocks

 

I had to put in a PR a while ago just so CA would install no problems.

https://github.com/limetech/webgui/pull/351

 

Edited by Squid
  • Like 1
  • Upvote 2

Share this post


Link to post

Yes, this is a real problem, recently a user had some data loss pasting the invalid slot command because of this, and it was pasted from a code block.

Share this post


Link to post

 

Share this post


Link to post

I've noticed that vscode will show these errors in the editor but not notepad++

 

notepad++

 

image.png.c1d2f0821eea8f161a8e7f494ca0ff21.png

 

vscode

 

image.png.45b55d2caced1a09aae0323bd359b182.png

 

I'm copying the code-block from

as an example

Share this post


Link to post

 

Share this post


Link to post

I'm not at any of my normal computers - but knowing the codes for these hidden characters, can be useful when diagnosing this type of problem. It's possible, that it's something simple like not consistently using UTF-8 (i.e. it's set as a meta tag, so the client will render using it, but the server itself isn't aware of the character set being used, or content being submitted is being submitted using a different character set) 

Share this post


Link to post

Please post a link to a forum post which includes text, where if you select/copy/paste exhibits this issue.  I tried on a few code snippets, pasting into 'vi' and don't see any issues.

Share this post


Link to post
2 hours ago, limetech said:

Please post a link to a forum post which includes text, where if you select/copy/paste exhibits this issue.  I tried on a few code snippets, pasting into 'vi' and don't see any issues.

--runtime=nvidia has caused problems here.

 

 

And proof that the problem was resolved by typing it in manually here.

 

Share this post


Link to post

What's happening is sometimes "byte order marks" are inserted in the text copied from the clipboard.  In UTF-8 this is hex sequence "ef bb bf".

I've found that sometimes they appear in middle of selected text, sometimes at end, sometimes both, sometimes not at all.  Have no idea how to fix ...

Share this post


Link to post
17 minutes ago, limetech said:

Have no idea how to fix ...

Get rid of IPS? I know, I know, but sometimes get frustrated with this forum software and the disappearing posts from the unread list, the copy/paste problems, the 3 page long code blocks without a scroll bar, etc...

Share this post


Link to post

Or report it upstream to IPS

 

I mean, it's a bug in their software.....

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.