[Gambas-user] Copy and Paste from the 'outside' in to gambas3 editor

Jussi Lahtinen jussi.lahtinen at gmail.com
Thu May 13 22:39:48 CEST 2021


Weird, I cannot reproduce that in Linux Mint, but I don't have gedit. I
tested it by copying from firefox and xed, no problems.
Open the menu item "?" --> System Information, and copy&paste it here.

Jussi

On Thu, May 13, 2021 at 11:29 PM Nisse Nordlundh <nisse at ngn.nu> wrote:

> Hello,
>
> (sorry if this is a common topic)
>
> I probably did away with myself ...
>
> but...
>
> I have Ubuntu 20.04.2 LTS
> and: GAMBAS3 3.16.0
>
> In big, no problem with that. It works and I can program.
>
> But - then I discovered one thing.
>
> When I see that I can reuse larger codings and only replace characters
> or strings, I usually copy the current section.
> Paste it in e.g. gedit (or pluma).
> and run search & replace there.
> When it is ready, I select and copy and paste it in the place I want it
> in gambas3 editor.
>
> Now it turned out that then the gambas hung up - cross stop.
>
> After a little research, I found out that if I write, in gedit åäöÅÄÖ.
> Selects & copies it and then pastes it into gambas3 editor and the
> result is:
> ������
>
> If I press [Ctrl] + [Shift] + [V], a window will appear with
> different pasting options. If I choose here: 'Simple text' and
> any of the 5 choices I get: ������
>
> If I instead, select: 'Unknown format / application /
> x-gtk-text-buffer-rich-text'
> And select: 'Paste normally': The following will be pasted:
> GTKTEXTBUFFERCONTENTS-0001
>   <tags>
>   </ tags>
> <text> åäöÅÄÖ </text>
> </text_view_markup>
>
> OK I then get 'åäöÅÄÖ' but why the rest?
>
> And if I choose another option, all (unknown) characters (except 0-1 and
> a-z, A-Z) will be replaced with their respective 'entities';
> for example
> < with: &
> " With: "
> ' With: '
>
> Copy & paste 'åöäÅÄÖ' within gambas3 editor - no problem.
> But 'from the outside'?
>
> Is there an explanation?
>
> Have tried to investigate how it works with the so-called charset in
> gambas3 and in Ubuntu 20.04.2
> Can't find anything strange in Ubuntu 20.04.2
> How does it work in gambas3 (3.16.0)?
>
> Regards
>
> Nils-G Nordlundh / from Sweden
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210513/50bef810/attachment-0001.htm>


More information about the User mailing list