Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Support for non-UTF-8 encodings #1806

Closed

Description

@izuzak

We've received a few user requests about this, so decided to make an issue to track this:

  • support/c1efbd22aac011e3824485c02873dc32#C3
  • support/6026ed1eb23511e39be96d50cc8424ad
  • support/4ab67e5aaf6411e388d6c56073fdae1e

The editor can only reads UTF-8 files. It will be very handy to be able to support multiple encodings.

...

I need to change the encode of my code, but I cant find where I could change from UTF-8 for Windows 1252 for example.

Activity

  1. izuzak commented on Apr 21, 2014

    @izuzak
    ContributorAuthor

    More: support/2a6f5cf2c92211e38d3191d6c48b6d18

  2. hebbet commented on Jun 24, 2014

    @hebbet

    is anyone working on this?

  3. tyro700 commented on Jul 2, 2014

    @tyro700

    It seems that nobody works on this?

  4. izuzak commented on Jul 2, 2014

    @izuzak
    ContributorAuthor

    As far as I know, noone is working on this right now. If you'd like to submit a pull request -- feel free to do so! 👍

  5. ForNeVeR commented on Jul 11, 2014

    @ForNeVeR
    Contributor

    Okay, I've done some research and created the following support tickets:

    We may proceed with implementation in Atom only after these tickets will be closed. Currently I don't have meaningful ideas about encoding support in pathwatcher package. It seems to be a constraint of nodejs stream API (more precisely, the fs.createReadStream function) we'll need to overcome.

  6. mathieumatiu commented on Jul 22, 2014

    @mathieumatiu

    Sorry i can not help but i just want to say this would be a great thing to be able to use other kind of encoding like iso-8859-1 and iso-8859-9 in Atom.
    Thanks a lot for all.

  7. ForNeVeR commented on Jul 22, 2014

    @ForNeVeR
    Contributor

    @mathieumatiu, if all will be according to my current plan, all encodings supported by iconv-lite will be supported by atom. And yes, ISO-8859-1 to ISO-8859-16 will be supported.

  8. hebbet commented on Jul 22, 2014

    @hebbet
  9. phoenixweiss commented on Aug 20, 2014

    @phoenixweiss

    That will be very useful to be able to reopen a file with different encoding as Sublime Text do.

    I've subscribed for this issue.

  10. roman-wb commented on Aug 21, 2014

    @roman-wb

    Very need feature 👍

  11. amferraz commented on Sep 1, 2014

    @amferraz

    👍

  12. johans commented on Sep 1, 2014

    @johans

    +1

  13. fernandowobeto commented on Sep 1, 2014

    @fernandowobeto

    Very useful! Today, we have two project, a utf-8 and ISO-88591. I need to open sublime text to work ISO-88951 project =/

  14. dcerman commented on Sep 2, 2014

    @dcerman

    FWIW, I've found that my UTF-16 encoded text files open nicely in Atom when I use the Support Gbk package. However, I haven't checked whether they stay in that encoding when saved. Hope this helps.

  15. 20 remaining items

  16. kevinsawicki commented on Oct 28, 2014

    @kevinsawicki
    Contributor

    I've got a PR going over in #3987 for this.

    Atom will now include a dropdown menu to quickly switch encodings when ctrl-shift-U is pressed, similar to switching the grammar with ctrl-shift-L.

    Please comment on that PR if you have any encodings you want included in the initial list.

    You can see the current list here: https://github.com/atom/encoding-selector/blob/master/lib/encodings.json

  17. kevinsawicki commented on Oct 29, 2014

    @kevinsawicki
    Contributor

    This has been fixed on master and will be included in the next Atom release, 0.141

  18. benogle commented on Oct 29, 2014

    @benogle
    Contributor

    💥

  19. acusti commented on Oct 30, 2014

    @acusti

    👌 👏

  20. kevinsawicki commented on Oct 30, 2014

    @kevinsawicki
    Contributor

    0.141 is now available with this included in it, please open new issues going forward related to encodings.

  21. J-qak commented on Apr 14, 2016

    @J-qak

    What about file saving with different encoding?

  22. ManuDevil commented on May 18, 2017

    @ManuDevil

    +1
    I need to work with ISO-8859-1 encoded files, and I can't. It seems that Atom removes every charset information in the file...

  23. lock commented on Apr 1, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  24. locked and limited conversation to collaborators on Apr 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions