> On 06 Dec 2014, at 11:47, kilon alios <[email protected]> wrote: > > The problem is not even just MacOS related, I have experienced similar > problems on UBUNTU but in that OS the problem exist when copying from Chrome > it does not exist when copying from Firefox. But in MacOS even Firefox has > the same issue.If I remember correctly Windows has same issues too. > > Generally speaking the workspace/Playground/Pharo should not allow the > pasting of invisible / illegal characters since they would have no value to > the user.
But how do you determine what an “illegal character” is? You can’t just exclude control characters or Unicode... > > On Sat, Dec 6, 2014 at 11:58 AM, Sven Van Caekenberghe <[email protected] > <mailto:[email protected]>> wrote: > > > On 06 Dec 2014, at 10:38, Max Leske <[email protected] > > <mailto:[email protected]>> wrote: > > > > > >> On 05 Dec 2014, at 22:17, kilon alios <[email protected] > >> <mailto:[email protected]>> wrote: > >> > >> I try to copy this code here > >> > >> https://www.facebook.com/ObjectProfile/posts/742756179144315 > >> <https://www.facebook.com/ObjectProfile/posts/742756179144315> > >> > >> and paste it to Playground to do it. It inserts illegal characters. > >> > >> I am on MacOS Yosemite and tried Chrome and Safari. > >> > >> Workspace also has same issue. Is there a solution to this ? Copy pasting > >> code from an internet browser is kinda a huge deal. > > > > Confirmed. It seems to be a problem with the # character. Although the > > problem in my opinion is the encoding on the webpage. Workspace and > > Playground behave just as they should (which is to correctly display all > > characters). > > I had a look too. There is indeed an issue. You can inspect > > Clipboard clipboardText > > and you'll see that there are strange characters (probably related to the > blue) around the symbol constants. Of course, these originate on the page. > > But if you copy and paste somewhere else, let's say a terminal (you can try > the pbpaste command in Mac OS X), these are somehow filtered out, while Pharo > does not seem to do that. > > I vaguely remember that when you copy something, multiple representations are > actually copied, and during paste you select which one you want. Maybe > something is wrong there. > > But apart from that, I would like to know how the filtering works. > > Sven > > > > >
