Skip to content

Conversation

@guyfawcus
Copy link
Contributor

Update the MIME type for plain text files to use the UTF-8 charset:

  • text/plain; charset=utf-8

At the moment, no charset is specified:

  • text/plain

This should fix the text file created by archmap.
Currently, when you open it in a browser some of
the text is incorrectly formatted.

References:

Update the MIME type for plain text files to use the UTF-8 charset:
  "text/plain; charset=utf-8"

At the moment, no charset is specified:
  "text/plain"

This should fix the text file created by archmap.
Currently, when you open it in a browser some of
the text is incorrectly formatted.

References:

* https://archwomen.org/media/archmap/archmap-users.txt
* https://www.iana.org/assignments/media-types/media-types.xhtml#text
@guyfawcus
Copy link
Contributor Author

guyfawcus commented Nov 5, 2017

For example, one of the lines is displayed as:

  • 49.574583,17.956361 "deu439" # Starý JiÄ�ín, Czech Republic
    instead of:
  • 49.574583,17.956361 "deu439" # Starý Jičín, Czech Republic

...in both Firefox and Chromium

I'm not 100% certain that this PR will fix it, but it makes sense that it would.

@guyfawcus
Copy link
Contributor Author

Just to be clear, this doesn't affect the file if you download it. It's only a problem if you try to view it in a browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant