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

  • Home
  • SEARCH
  • 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 6858605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:10:49+00:00 2026-05-27T02:10:49+00:00

am trying to find a way to instruct ODBC drivers – Datadirect ODBC to

  • 0

am trying to find a way to instruct ODBC drivers – Datadirect ODBC to use win1251 for client session.

There are for ways mentioned in USer Guide:

  1. Using the \encoding command in psql, which allows you to change client encoding on the fly.
  2. Using SET client_encoding TO: => SET CLIENT_ENCODING TO ‘value’;
  3. Using the PGCLIENTENCODING environment variable.
  4. Setting the configuration parameter client_encoding in the postgresql.conf file

But as far as i understand options 1 and 3 in not suitable for ODBC drivers, option 2 I am also could not use – because i use SAS and this engine doesn’t allow me to execute manually edited SQL’s – it use a lot of automatic codegeneration.

I have tried option client_encoding in postgresql.conf file, moreover I have tired to execute follow clommand in psql admin session: alter user sasuser SET client_encoding to WIN1251; but nothing changes – by default client encoding is still UTF8…

currently in Datadirect ODBC.ini file i have follow string:

IANAAppCodePage=2251

Could somebody help me please?

  • 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-27T02:10:50+00:00Added an answer on May 27, 2026 at 2:10 am

    This should definitely do the trick:

    ALTER USER sasuser SET client_encoding TO WIN1251;
    

    Only remaining explanations can be:

    • You are in fact connecting to the DB with a different user.
    • At some point during the connection client_encoding is explicitly set to another value.
    • You are connecting to the wrong database cluster (same IP? same port?)

    To find out, set log_statements = all, make the server cluster reload, start a session with your user-unfriendly tool, and check the database log, if and what was actually communicated to the server.
    Don’t forget to reset log_statements or your log files will grow huge.


    Or it is all just a typo in Datadirect ODBC.ini:

    IANAAppCodePage=2251
    

    That supposed to be 1251?

    Nope. IANAAppCodePage MIBenum 2251 stands for “WINDOWS_1251”. That’s not it.

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

Sidebar

Related Questions

I am trying to find a way to use different ssh keys to clone
im trying to find a way to alert when there is a null values
I'm trying to find a way to use the refresh method of jQuery ui
Trying to find a way to remove blank pages from a document I wrote
Trying to find a way to send a POST HTTPS request from Python to
I am trying to find a way to increment a second primary key column
I am trying to find a way to reverse a string, I've seen alternatives
I am trying to find a way to prevent the keyboard from appearing when
I'm trying to find a way to my Window 7 machine to recognize the
I'm trying to find the way to do paid memberships in a Drupal site,

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.