Giter Site home page Giter Site logo

Comments (6)

abmusse avatar abmusse commented on May 14, 2024

Original comment by Kerim Gueney (Bitbucket: KerimG, GitHub: KerimG).


@dmabupt

I think so, yes. Thank you very much.

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 14, 2024

Original comment by Xu Meng (Bitbucket: mengxumx, GitHub: dmabupt).


@KerimG Can we close this issue now?

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 14, 2024

Original comment by Xu Meng (Bitbucket: mengxumx, GitHub: dmabupt).


Hello @KerimG , the DB2CCSID env var actually calls SQLOverrideCCSID400().

Ref --> https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_61/apis/pase_sqloverrideccsid400.htm

Long long ago this DB2 addon ran with its job CCSID (which corresponding to CCSID = 0). But it had some problems so I overrides the default CCSID to 1208 (UTF-8) and adds this DB2CCSID env var for customization.

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 14, 2024

Original comment by Kerim Gueney (Bitbucket: KerimG, GitHub: KerimG).


Hello @dmabupt,

the character set mismatch issue has been resolved ( #18 ). It wasn't actually a characterset mismatch, despite the error message making it seem so,

Nonetheless, shouldn't

process.env.DB2CCSID = '273';

work?

Your suggestion with

process.env.DB2CCSID = '0';

on the other hand does work.

Perhaps I'm confused about what the DB2CCSID environment variable is for. I assumed that it has to match whatever CCSID the database fields are defined in.

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 14, 2024

Original comment by Xu Meng (Bitbucket: mengxumx, GitHub: dmabupt).


Hello Kerim,
Would you show me the error when you insert data with CCSID 1208?
The system automatically converts character arguments and results between the CCSID of the job or database field and a CCSID used for idb-connector functions that defaults to 1208 (UTF-8).
Generally we do not need to change the default CCSID value. But you may try

#!javascript

process.env.DB2CCSID = '0';

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 14, 2024

Original comment by Jesse G (Bitbucket: ThePrez, GitHub: ThePrez).


I'm not sure on this one, but assigning to @dmabupt who can probably handle.

from nodejs-idb-connector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.