anyedittools icon indicating copy to clipboard operation
anyedittools copied to clipboard

Text encoding mixup when comparing to file

Open xerces8 opened this issue 8 years ago • 2 comments

If I have some text in the clipboard and then right click a file in the Project Explorer and select Compare With / Clipboard, then the file is interpreted with wrong text encoding.

For example if I have a file with cp1250 encoding, containing the text "oče", then in the compare window it will be shown as "o�e" ("o?e").

If I open the file for editing and right click in the editor (over the text, without selecting any text) and select Compare With / Clipboard, then the problem does not happen.

But if I select some text in this file (in the editor) and compare to clipboard, then again the text is shown as "o�e" ("o?e").

Using v2.6.1 in Eclipse 4.6.2 with Oracle Java 1.8.0_121-b13 on Windows 7 Pro 64 bit.

xerces8 avatar Feb 17 '17 18:02 xerces8

Please set workspace default encoding to utf-8. Since clipboard can contain anything, the clipboard text is evaluated with workspace default settings for encoding.

iloveeclipse avatar Feb 19 '17 17:02 iloveeclipse

It is already set to utf-8.

On 19 February 2017 at 18:38, Andrey Loskutov [email protected] wrote:

Please set workspace default encoding to utf-8. Since clipboard can contain anything, the clipboard text is evaluated with workspace default settings for encoding.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iloveeclipse/anyedittools/issues/125#issuecomment-280934530, or mute the thread https://github.com/notifications/unsubscribe-auth/APMbrbQQVKSwchsUETl9Lbf416kqEpc-ks5reH4RgaJpZM4MEl6y .

xerces8 avatar Feb 20 '17 15:02 xerces8