Skip to content

Conversation

@DiegoMCMartins
Copy link

@DiegoMCMartins DiegoMCMartins commented Oct 20, 2025

Hi, I was testing your library in a project and ended up encountering a very specific issue. When a table uses the "latin1" charset and contains data with an accent, in this case, Brazilian words, the accent wasn't decoded correctly. For example, "João" became "Jo?o." While searching for alternatives, I found a solution in another fork, which is in PR.

I opened this PR to fix this issue so I can continue using the library.

Thank you.

break;
}

parser._encoding = column.charset;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this breaks anything, but I'm worried something else might depend on the _encoding being set to something else, and this is only really supposed to change it for the column being read. Can we call parseBuffer(size).toString(column.charset ?? parser._encoding) instead?

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

Successfully merging this pull request may close these issues.

2 participants