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

Change Encoding format on XML Header #32

Open
Duskraelea opened this issue Jun 28, 2018 · 1 comment
Open

Change Encoding format on XML Header #32

Duskraelea opened this issue Jun 28, 2018 · 1 comment

Comments

@Duskraelea
Copy link

Duskraelea commented Jun 28, 2018

Hello,

I have used option xmlHeader: true, which gives <?xml version="1.0" encoding="utf-8"?> on top of the XML.

However, I want to change "utf-8" to something else like "TIS-620", how do I do that? Thank you.

@soldair
Copy link
Owner

soldair commented Jul 20, 2018

hey. you should add an argument here https://github.com/soldair/node-jsontoxml/blob/master/jsontoxml.js#L118

and submit a pull request =)

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

No branches or pull requests

2 participants