asfernandes / node-firebird-drivers

Node.js Firebird Drivers
MIT License
53 stars 17 forks source link

Charset UTF8 #50

Closed jucapablanca closed 4 years ago

jucapablanca commented 4 years ago

Currently, the library does not have a way to use a charset other than utf8, which makes it very difficult to use in Latin countries, with accentuation in the language. Thanks for listening.

asfernandes commented 4 years ago

Node strings are UTF8. Why do you want to use other charsets as client charset?

jucapablanca commented 4 years ago

Currently, my clients' databases use "ISO8859_1" charset, and have records with special characters in this format. So when I use this library, the information read or saved is incorrect.

jucapablanca commented 4 years ago

Example this information "áéíóúãç" is saved "áéíóúãç"

asfernandes commented 4 years ago

So your are doing something wrong, for example, using NONE charset in the columns. The client charset (which this driver uses UTF8) is the client charset and is transliterated to the columns charset.