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

Nisse Nordlundh nisse at ngn.nu
Thu May 13 22:18:50 CEST 2021


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



More information about the User mailing list