Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Public File API uses incorrect file encoding strings #866

mikechambers opened this Issue · 3 comments

3 participants


As discussed in this thread:!topic/brackets-dev/6F78iuxKyq0

The public File APIs in brackets use the incorrect strings for specifying encoding types (currently only "utf8" is supported).

To summarize, the HTML5 File System draft

says that encodings should be specified by their IANA names:

So, for example, to open a file with UTF 8 encoding, the encoding
should be specified as:


Currently brackets uses the "utf8" string, which is counter to the

However, internally, we need to specify the strings in the "utf8" format, in order to maintain compatibility with the NodeJS API.

It appears that this will require changes in:

It will also require that a number of tests are updated to use the appropriate string.

So, the work required is:

  1. Change public APIs to accept and use correct file encoding Strings.
  2. Ensure that internal calls use correct encoding format for NodeJS
  3. Create constants for the encoding types for public use (in able to allow us to change the encoding strings in the future).

If there are no objections, then I will take care of this.

@mikechambers mikechambers was assigned

Assigning to Mike @mikechambers .

@mikechambers mikechambers referenced this issue

Issue866 #874


Fixed But Not Closed. @mikechambers please confirm that this is fixed and close it.


Fixed in pull request #874

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.