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

First character is undefined #39

Open
haltman74 opened this issue Jun 7, 2021 · 0 comments
Open

First character is undefined #39

haltman74 opened this issue Jun 7, 2021 · 0 comments

Comments

@haltman74
Copy link

haltman74 commented Jun 7, 2021

Hi everybody,
I read a log file with the following code:

const liner = new lineByLine(file_name); let valore ="<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<Table>\n<Row><Cell>Contenuto log</Cell></Row>\n"; let l; while (line = liner.next()) { console.log(""+line); l+=""+line+"&lt;br\&gt;"; } valore+="\t<Row><Cell>"+htencode.encode(l, {mode: 'extensive', level: 'xml'})+"</Cell></Row>\n"; valore+="</Table>"; callback(null, valore);
immagine

I get the first character undefined can you explain to me why?

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

1 participant