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
UTF-8 troubles under Linux #14
Comments
I will see what I can do, but this is not easy. Basically we would I don't know what to do -- on one hand I understand that it's a regards, On Fri, Aug 5, 2011 at 15:46, akaspin
|
Thanks for advance. But I think this behavior should be documented. |
It's been at https://github.com/erlide/erlide/wiki/FAQ since a while ago. On Mon, Aug 8, 2011 at 17:16, akaspin
|
Yep. I read it first. I was referring to the behavior under Linux. |
I've got an issue with UTF-8 under Linux as well. I created a minimal test file that allows reproducing it: -module(test). $ file test.erl So it has ISO-8859-1 encoding and also contains latin1 characters only, so it should work, but it gives me "Could not open the editor: Erlang tools do not support source files encoded in UTF-8" |
I do have some files with ä in strings which do open, but I've got the same problem as akaspin - the highlighting is funny. Per special character used, the highlighting is shifted by one. I.e. If I've got a string "ä" and anywhere later in the file a fun(), it is not fun that is highlighted, but un( |
Sorry for the delay, I was on vacation. Please try the latest build from http://erlide.org/update_nightly, at least the highlighting problem should be fixed. Regarding the other issue, do you have Eclipse set up to see .erl files as UTF-8? Check window->preferences->general->content types->text files->erlang and make sure the encoding is ISO-8859-1. Press the "Update" button or the setting is not saved. |
Update to the nightly fixed both issues for me! Thank you very much! |
Highlighting problem persists in synchronize view though... |
Which synchronize view? The SCM one? What version control do you use? |
Actually, it's the compare view/editor "Erlang source file Compare" It also happens when I compare two random files from navigator, so not only in synchronize view. I'm using EGit though in case that changes something. |
ok, thanks, I will look at it. |
It works for me. Could you please provide an example for how to reproduce? |
Sure, create a module with following content: -module(new_file_one). test() -> test2() -> and a second file, which can be empty. Select both in Navigator, right click and choose compare with > each other. The highlighting in test2 is shifted by one character in compare editor. |
Is this still a problem? Since Erlang supports utf-8, it should not need any specific hacks anymore. |
I assume this works now. Please reopen if this is not the case. |
I set
content type
preference for erlang files toUTF-8
(from https://www.assembla.com/spaces/erlide/tickets/852-unicode-content-is-mangled-in-documentation-hover).Under Windows all ok.
But under linux (Debian Testing x64) I get big headache:
The text was updated successfully, but these errors were encountered: