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

readXmlString or other functions only accecpt UTF-8 encoding string. #17

Open
peixinchen opened this issue Jun 21, 2013 · 2 comments
Open

Comments

@peixinchen
Copy link

Functions only take UTF-8 encoding string, so can't handler XML data like '', i must iconv XML string to UTF-8 and change the XML header encoding to UTF-8, too terrible.

@tcdaly
Copy link

tcdaly commented May 21, 2014

Is it true that only UTF8 strings are accepted? If so, I assume that only UTF8 strings are returned and any 'encoding' attributes that are set to anything other than 'UTF8' in stylesheets are ignored?

@peixinchen
Copy link
Author

https://github.com/bsuh/node_xslt/blob/master/node_xslt.cc#LC70

ARG_utf8(str, 0)
and
htmlDocPtr doc = htmlReadFile(
*str,
"UTF-8",
useErrors->BooleanValue()
? HTML_PARSE_RECOVER | HTML_PARSE_NOERROR
: HTML_PARSE_RECOVER
);

assume the argument str is utf-8.

Am i wrong?

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