jiaola / marc4js

A Node.js API for handling MARC
Apache License 2.0
38 stars 7 forks source link

XML transform fails - invalid character #3

Open stvmlbrn opened 7 years ago

stvmlbrn commented 7 years ago

Receiving the following error message when transforming the marc record to XML:

Invalid character (in string: AV2 fiction readalong ; at index 2

I figure its an encoding issue. I forked this repo to troubleshoot with my own copy. I upgraded the version of xmlbuilder to 8.2.2 and added the allowSurrogateChars: true parameter to the .create() method in the marcxml_transformer.js file. No luck.

Worth noting that other transformers work fine.

See attached marc record as an example.

test.txt