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

Suport DEFAULT_ENCODING latin1 #283

Open
FabianoCastro opened this issue Dec 2, 2022 · 9 comments
Open

Suport DEFAULT_ENCODING latin1 #283

FabianoCastro opened this issue Dec 2, 2022 · 9 comments

Comments

@FabianoCastro
Copy link

FabianoCastro commented Dec 2, 2022

Hello, when I get data with accent in Portuguese it comes with incorrect characters, but if I change the DEFAULT_ENCODING from "utf8" to "latin", directly in index.js, it works 100%.

If it is possible to have a configuration for this, so I don't have to change it every time I update the sources, I would be very grateful ;).

Another detail, I include the charset "WIN1252" in the SupportedCharacterSet type list, as it does not exist.

@rhengles
Copy link

I normally don't post just to one-up, but this time I want to say: Same here!

@rickdroio
Copy link

Dear @FabianoCastro your request just save me :)

I've updated index.js to follow, worked like a charm!

DEFAULT_ENCODING = 'latin1'

Please node-firebird team, create a param to change it on constructor!

@FabianoCastro
Copy link
Author

Great

@b-runo
Copy link

b-runo commented Sep 11, 2023

Someone can solve this? using the options.encoding = 'WIN1252' or options.encoding = 'latin1' dont work for me :(

@FabianoCastro
Copy link
Author

Hi,

Change the const

const
    // DEFAULT_ENCODING = 'utf8',
    DEFAULT_ENCODING = 'latin1',
    DEFAULT_FETCHSIZE = 200;

At line 889 in file indes.js

@b-runo
Copy link

b-runo commented Sep 11, 2023

You save my life Bro, i lose a entire day trying to solve this.

@FabianoCastro
Copy link
Author

Updating....

Version 1.1.8

image

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

6 participants