Git Product home page Git Product logo

Comments (5)

vladdu avatar vladdu commented on August 12, 2024

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.

vladdu avatar vladdu commented on August 12, 2024

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.

qingliangcn avatar qingliangcn commented on August 12, 2024

ok, thank you, i got it .

from erlide_eclipse.

qingliangcn avatar qingliangcn commented on August 12, 2024

hi, when i write my .erl file with encoding utf8, it works well with erlc. why?

from erlide_eclipse.

vladdu avatar vladdu commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.