Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MIME type for plain text files #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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