Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7695059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:27:38+00:00 2026-05-31T21:27:38+00:00

I have a db2 database with this charset options: db2 get db cfg for

  • 0

I have a db2 database with this charset options:

db2 get db cfg for CORRETGE
    Database territory       = US
    Database code page       = 1208
    Database code set        = UTF-8

But when I connect to the database from a PHP 5.4.1.RC1 script with db2_connect(), I get this CONN_CODEPAGE:

public 'APPL_CODEPAGE' => int 819
public 'CONN_CODEPAGE' => int 819

Database has 1208 (UTF-8 encoding of Unicode) codepage and the connection has 819 (ISO8859-1) codepage, and this provoque charset problems.

I don’t know how to set 1208 as the CONN_CODEPAGE. Is there any way to do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T21:27:39+00:00Added an answer on May 31, 2026 at 9:27 pm

    FIXED

    Set the DB2CODEPAGE variable to 1208 with the command

      db2set DB2CODEPAGE=1208
    

    and restart DB2

    now db2_client_info() returns

    public 'APPL_CODEPAGE' => int 1208
    public 'CONN_CODEPAGE' => int 1208
    

    and the results are the expected 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have some code that uses Entity Framework against a DB2 database. When we
I have a spatially enabled database (DB2, in this case). I need to store
I have a db2 database file, but do not have a db2 server. I
Database: DB2 v9.5 on AIX Scenario: I have 2 instances- db2inst1 and db2inst2. I
I have two Database, DB1 and DB2. How can I transfer data of DB1
I have a specific DB2 query, and I would like to execute this query
I have a block of code that is repeated within a DB2 stored procedure.
I have a (DB2) database table containing location information, one column of which is
I have an existing DB2 database at my job. (At least, I think it's
I have to fetch only 50 records at a time from database (DB2), for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.