Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text encoding mixup when comparing to file #125

Open
xerces8 opened this issue Feb 17, 2017 · 2 comments
Open

Text encoding mixup when comparing to file #125

xerces8 opened this issue Feb 17, 2017 · 2 comments

Comments

@xerces8
Copy link

xerces8 commented Feb 17, 2017

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.

@iloveeclipse
Copy link
Owner

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

@xerces8
Copy link
Author

xerces8 commented Feb 20, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants