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

encoding WIN1252 dont work as expected #311

Open
b-runo opened this issue Sep 11, 2023 · 2 comments
Open

encoding WIN1252 dont work as expected #311

b-runo opened this issue Sep 11, 2023 · 2 comments

Comments

@b-runo
Copy link

b-runo commented Sep 11, 2023

Im using options.encoding = 'WIN1252' to try retrieve column 'ENDERECO' from my database that contains special characters like "cuiába", very common here in Brazil.

But when i use the regular select:
database.query("SELECT ENDERECO FROM CONTATOS").
This return weird character like "cui�ba".

Just work when i use CAST() inside select like:
database.queryAsync("SELECT cast(ENDERECO as varchar(100) character set win1252) FROM CONTATOS")

But i have to many colmuns to do this way, someone know how to solve this?.

@mateusvieites
Copy link
Contributor

In "index.js" from node-firebird.
DEFAULT_ENCODING='latin1'

@nickolasdeluca
Copy link

I've requested the option to set the default encoding to latin1 dinamically on issue #336

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

3 participants