Skip to content

Charsets support #397

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

Closed
fuson opened this issue Feb 21, 2013 · 3 comments
Closed

Charsets support #397

fuson opened this issue Feb 21, 2013 · 3 comments

Comments

@fuson
Copy link

fuson commented Feb 21, 2013

Hi guys.

Will it please you to stop ignoring all non-utf8 world and add iconv support, cause we have to use workarounds like:

const converter = new iconv.Iconv('windows-1251',
                                                   'utf8');

and in query

typeCast: function (field, next) {
    if (field.name === 'name') {
        return converter.convert(field.buffer()).toString();
    }

    return next();
}

And the same crap (in real apps we use wrappers sure) we have to add in every project!

Please, spend 30 minutes and iconv support in mainstream :)

@felixge
Copy link
Collaborator

felixge commented Feb 21, 2013

I am sorry to hear our library has disappointed you. I am
herby refunding you the money you have paid.

Seriously: If you send a good patch, we will merge it.

@fuson
Copy link
Author

fuson commented Feb 21, 2013

Yes, i'm really disappoint and I understand that all do not care about it. But i hope you know, not all node.js users competent enough to make correct pull requests for a fundamental modules, like yours. Yes, we can make patch for our use cases (and we did it sure), but I realize that these workarounds are not suitable for inclusion in the main development branch.

It was only cry from the heart, sorry for it.

@dresende
Copy link
Collaborator

You don't have to be an expert, just need to know how to make a pull request (it's not that hard). After the first commit we can comment and improve the code before merging. That's what open source culture is all about.

@fuson fuson closed this as completed Feb 21, 2013
dveeden pushed a commit to dveeden/mysql that referenced this issue Jan 31, 2023
QueryUnescape the tlsConfig name during DSN parsing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants