node-firebird icon indicating copy to clipboard operation
node-firebird copied to clipboard

Suport DEFAULT_ENCODING latin1

Open FabianoCastro opened this issue 3 years ago • 9 comments

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.

FabianoCastro avatar Dec 02 '22 23:12 FabianoCastro

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

rhengles avatar Dec 10 '22 15:12 rhengles

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!

rickdroio avatar Dec 17 '22 15:12 rickdroio

Great

FabianoCastro avatar Dec 17 '22 21:12 FabianoCastro

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

b-runo avatar Sep 11 '23 00:09 b-runo

Hi,

Change the const

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

At line 889 in file indes.js

FabianoCastro avatar Sep 11 '23 00:09 FabianoCastro

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

b-runo avatar Sep 11 '23 01:09 b-runo

Fixing this would solve:

  • #336
  • #334
  • #328
  • #319
  • #311

braaar avatar Jul 03 '24 08:07 braaar

Updating....

Version 1.1.8

image

FabianoCastro avatar Jul 12 '24 20:07 FabianoCastro