1

I have istalled ErlIDE plugin to Eclipse, and created project. In project I added new erlang module but when I want to edit it I get error

Could not open the editor: Erlang tools do not support source files encoded in UTF-8

Is it bug of ErlIDE? Or erlang doesn't support UTF8?

Dmitro
  • 1,489
  • 4
  • 22
  • 40

1 Answers1

3

From Erlang documentation:

Also the source code is (for now) still expected to be written using the ISO-latin-1 character set, why Unicode characters beyond that range cannot be entered in string literals.

See this thread for more details.

Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
  • thanks for your reply, I set up encoding US-ASCII in Eclipse in Window->Preferences->General->Workspace, but I still get this error when I open erl file which was created in IDE. I can see otp files without any errors. What setting I need to do? – Dmitro Jun 25 '11 at 19:17
  • Check if the file contains non-ASCII characters or an Unicode BOM (e.g. using http://qscripts.blogspot.com/2010/04/check-if-file-contains-special-non.html). – Alexey Romanov Jun 26 '11 at 04:20
  • thanks, ErlIDE added comment with date with my system locale ru_RU, I cleaned it and it works. – Dmitro Jun 26 '11 at 12:24