We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In https://github.com/tcvan0707/txt2html/blob/main/src/txt2html.js#L36 you cast to a string. A better way to do this is to request that node encode the resulting buffer as a utf-8 string:
const text = await fs.readFile(filePath, 'utf-8');
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In https://github.com/tcvan0707/txt2html/blob/main/src/txt2html.js#L36 you cast to a string. A better way to do this is to request that node encode the resulting buffer as a utf-8 string:
The text was updated successfully, but these errors were encountered: