Comments (5)
Hi!
The problem with this is that Erlang source files are still supposed to be encoded in ISO8859-1. See http://erlang.org/doc/apps/stdlib/unicode_usage.html#2.3 for details:
2.3 Basic language support for Unicode
First of all, Erlang is still defined to be written in the ISO-latin-1
character set. Functions have to be named in that character set, atoms
are restricted to ISO-latin-1 and regular strings are still lists of
characters 0..255 in the ISO-latin-1 encoding. This has not (yet)
changed, but the language has been slightly extended to cope with
Unicode characters and encodings.[…]
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.
Comments are in the same category, because the lexical scanner assumes
ISO 8859-1 encoding.
So the only thing we can do until that is supported is to give a more
meaningful message.
from erlide_eclipse.
This was posted as https://www.assembla.com/spaces/erlide/tickets/338.
We won't be doing anything until OTP changes the source file encoding, because Eclipse gets confused and shows weird characters.
from erlide_eclipse.
ok, thank you, i got it .
from erlide_eclipse.
hi, when i write my .erl file with encoding utf8, it works well with erlc. why?
from erlide_eclipse.
Hi,
I think that erlc is more forgiving, because it simply ignores the content in the comments. Eclipse needs to know the encoding of the file and unfortunately Latin1 and UTF-8 are incompatible, we have to choose one of them. The official encoding is Latin1, that's why we chose it.
best regards,
Vlad
from erlide_eclipse.
Related Issues (20)
- doesnt write on file HOT 12
- ClassCastException on ErlElementPositionSorter HOT 7
- Corrupt outline/explorer label HOT 1
- Hover pop-ups not properly rendered, appear as HTML blobs HOT 1
- security related error installing erlide in photon HOT 12
- move CI to Travis HOT 1
- Find new place to host update site
- otp dir inets/src is empty HOT 3
- Installation problem HOT 7
- Use io:fread HOT 1
- Cannot install Erlang language tools IDE 0.56.0 HOT 3
- breakpoints fail to stop code running HOT 11
- when can i use the new Erlang page HOT 3
- "We are sorry, but the configured Erlang runtime could not be started, and erlide can't work. please check startup configuration" HOT 3
- Numbers with embedded underscores cause syntax error HOT 1
- atom_to_binary/1 not accepted as auto-imported HOT 1
- Cannot update to version 0.60.3 HOT 4
- No yellow marks for compiler warnings HOT 6
- Configured erlang runtime could not be started and erlide can't work HOT 1
- Cannot install erlide HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from erlide_eclipse.