Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakutis/test-browser-charsets
Find out which web browsers recognize Byte Order Marks in XMLHttpRequest.responseText with which XMLHttpRequest.overrideMimeType argument.
https://github.com/jakutis/test-browser-charsets
Last synced: 6 days ago
JSON representation
Find out which web browsers recognize Byte Order Marks in XMLHttpRequest.responseText with which XMLHttpRequest.overrideMimeType argument.
- Host: GitHub
- URL: https://github.com/jakutis/test-browser-charsets
- Owner: jakutis
- License: gpl-3.0
- Created: 2013-08-29T19:01:09.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-18T19:26:07.000Z (almost 11 years ago)
- Last Synced: 2024-11-14T23:09:42.401Z (2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.org/package/test-browser-charsets
- Size: 211 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
# test-browser-charsets
Find out which web browsers recognize Byte Order Marks in XMLHttpRequest.responseText with which XMLHttpRequest.overrideMimeType argument.
- [Overview](#overview)
- [Installation](#installation)
- [CLI](#cli)
- [Development](#development)## Overview
* It is a client-server webapp. Server is implemented using just without any dependencies. Client is plain JavaScript.
* It is a web developers' tool.
* It was useful in development of [httpinvoke](https://www.npmjs.org/package/httpinvoke).
* Helps find out which web browsers recognize Byte Order Marks in XMLHttpRequest.responseText with which XMLHttpRequest.overrideMimeType argument.
* Shows which byte-order marks were forcibly recognized - files with that BOM byte sequence will have mangled XMLHttpRequest.responseText. Those files are forcibly interpreted as text files, thus you will not be able to download them as binary files. This is irrelevant to Internet Explorer, because it has XMLHttpRequest.responseBody and also the browsers which implement the XMLHttpRequest2.
* Conclusions:
* Firefox-based browsers have some charsets that make the BOM ignored: x-user-defined, ibm866, iso-8859-2, etc.
* WebKit-based browsers always parse the BOM.## Installation
Install with [npm](https://www.npmjs.org/package/test-browser-charsets):
$ npm install --global test-browser-charsets
## CLI
Run:
$ test-browser-charsets
## Development
TODO