Comments (5)
Same problem here. Unfortunately not usable for ISO-8859-1 encoded XML.
Update:
In case using the request module to load the xml, you can use "request({uri:url, encoding:'binary'}...", which works for ISO-8859-1.
from sax-js.
Same problem here. @mborho not sure to understand your workaround
thanks
from sax-js.
@Kalise if you load your iso-8859-1 encoded xml string with the request module ( https://github.com/mikeal/request ) you can use encoding="binary" as option for "request" and the loaded xml string will get parsed with sax-js.
from sax-js.
is there any other workaround? I have the same problem with ISO-8859-1
and can't use the request module.
from sax-js.
since the encoding=
is not used by sax-js
you can always try to pre-transcode your file using iconv -f ISO-8859-1 -t UTF-8
. I don't know if this has some
from sax-js.
Related Issues (20)
- Question on special character & with Angular build HOT 2
- Exotic export strategy causes Rollup to fail HOT 2
- The startTagLine and startTagColumn members would be useful
- <script>a = "</scr" + "ipt>";<script> is parsed incorrectly
- Processing instruction ending with "?" fails to parse
- closing square bracket in a doctype comment leads to an error
- Missing dependency 'stream' HOT 8
- Project still active? HOT 5
- Move away from Buffer constructor
- Underscores in string causing Error
- Is this code safe against various XML attacks? HOT 1
- Multiple root elements, text in second root
- Problems with V10 HOT 2
- Are Promises supported (asynchronous callbacks)? HOT 2
- BUG: Non-strict entity detection misses close tag
- Attributes in root element not parsing
- XML within XML being parsed HOT 2
- Max buffer length exceeded: attribValue HOT 1
- opentag and closetag events not firing HOT 1
- Stream : Uncaught TypeError: Cannot read property 'prototype' of undefined HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sax-js.