Re: Copy & paste
Robert Schwenn <[email protected]> Fri, 17 Nov 2023 21:36:45 +0100
| Newsgroups | gmane.editors.jedit.user |
|---|---|
| Message-ID | <[email protected]> |
--===============7184281949285647269==
Content-Language: en-US
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hi Björn,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">thank You, it works! After googling "-Dfile.encoding"
it turns out that "-Dfile.encoding=COMPAT" has been introduced for
getting the old behavior (see <a class="moz-txt-link-freetext" href="https://openjdk.org/jeps/400">https://openjdk.org/jeps/400</a>). <br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Cheers<br>
</div>
<div class="moz-cite-prefix">Robert<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Am 17.11.2023 um 12:16 schrieb Björn
Kautler:<br>
</div>
<blockquote type="cite"
cite="mid:CAKChYSp+oBNBTmgRQNFzAtW1RqYSBbVAmBFgvVy+yNH-7QF=gg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi Robert.
<div><br>
</div>
<div>Since Java 18 the default encoding of the Java runtime
changed.</div>
<div>Before it was the default system encoding (for example
often Windows-1252 on Windows, but not necessarily), from Java
18 on it is UTF-8.</div>
<div>As the pasting to other programs works fine, I suspect that
the VBA editor is misbehaving here.</div>
<div>Or maybe it uses the "unicode" encoded clipboard flavor
which is problematic to be used anyway as "unicode" is not a
defined encoding and thus can mean different things.</div>
<div><br>
</div>
<div>The characters that are pasted to the VBA editor also
support this suspicion.</div>
<div>This is exactly the result you get when you encode those
characters using UTF-8 and decode them using for example
ISO-8859-1 or Windows-1252.</div>
<div><br>
</div>
<div>To reinstate the previous behavior, you need to start jEdit
with the system property `-Dfile.encoding=...` with the system
default encoding the VBA editor expects as argument.</div>
<div>Then the pasting works like expected again.</div>
<div><br>
</div>
<div>Cheers</div>
<div>Björn</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Am Do., 16. Nov. 2023 um
18:05 Uhr schrieb Robert Schwenn <<a
href="mailto:[email protected]"
moz-do-not-send="true" class="moz-txt-link-freetext">[email protected]</a>>:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p><font face="monospace">Hi,<br>
</font><font face="monospace">I'm on Windows 10 and 11 and
have been</font><font face="monospace"> running in a
usability problem after using jEdit 5.6 with Java 20 or
21: </font></p>
<p><font face="monospace">When I copy the text "a ä ö ü ß z"
from jEdit into the (say Excel) VBA editor (yes, I'm
still using this dino), the text appears there as "a ä
ö ü ß z". This doesn't happen when copying from </font><font
face="monospace">other programs or</font><font
face="monospace"> pasting into other programs or using
jEdit with Java 17 ;-). And the encoding used in jEdit
doesn't matter.<br>
</font></p>
<p><font face="monospace">Whatever there's going on, Java is
involved in changing the copy & paste behavior. So
I'd like to say "Jave, do this as before (until version
17)". Is this possible, may be via command line option?</font></p>
<p><font face="monospace">Thanks,<br>
Robert<br>
</font></p>
</div>
-- <br>
-----------------------------------------------<br>
jEdit Users' List<br>
<a href="mailto:[email protected]"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">[email protected]</a><br>
<a
href="https://lists.sourceforge.net/lists/listinfo/jedit-users"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.sourceforge.net/lists/listinfo/jedit-users</a><br>
</blockquote>
</div>
</blockquote>
<p><br>
</p>
<pre class="moz-signature" cols="80">--
Mit freundlichen Grüßen
Robert Schwenn
Augustusweg 10a
01445 Radebeul
0152 / 26 24 25 97</pre>
</body>
</html>
--===============7184281949285647269==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============7184281949285647269==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--
-----------------------------------------------
jEdit Users' List
[email protected]
https://lists.sourceforge.net/lists/listinfo/jedit-users
--===============7184281949285647269==--