Skip to Main Content
IBM Power Ideas Portal


This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Not under consideration
Workspace AIX
Created by Guest
Created on Feb 11, 2021

Informix ESQL/C ifx_var_getdata() should do charset conversion when binding with CLVCHARPTRTYPE

Sorry for the IBM AIX product name but this is about IBM/HCL Informix and I can't find the product name in the list...

Platforms: Linux Debian 10.7 or Windows 10
Informix server: IDS-14.10.FC5
Informix client: CSDK 4.50.FC5
DB_LOCALE = en_us.utf8
CLIENT_LOCALE = en_us.8859-15 (Linux) / en_us.1252 (Windows)

When fetching an LVARCHAR column, and binding the fetch handler with ifx_sqlvar_t sqltype=CLVCHARPTRTYPE, after the fetch we want to get the character string with ifx_var_getdata().

But it appears that the sequence of bytes returned by the ifx_var_getdata() function is pure UTF-8, and is not converted to ISO-8859-15 ...

Documentation says that this function returns ASCII data ... we assume that no conversion is done at all and it returns just the UTF-8 byte sequence.

The string should be converted to the charset of CLIENT_LOCALE, just as when binding with CVCHARTYPE.

https://informix.hcldoc.com/14.10/help/index.jsp?topic=%2Fcom.ibm.esqlc.doc%2Fids_esqlc_0007.htm

"..The lvarchar pointer type is not equivalent to a C-language char pointer. Informix® ESQL/C maintains its own internal representation for the lvarchar pointer type. This representation is identical to the representation of a var binary host variable, except that it supports ASCII data as opposed to binary data..."

Idea priority Medium
  • Guest
    Reply
    |
    Feb 22, 2021

    This should be pursued via the IBM Data and AI Ideas Portal for Clients for Informix as per the link in the previous comment.

  • Guest
    Reply
    |
    Feb 12, 2021

    looks like the same request as submitted here:
    https://ibm-data-and-ai.ideas.aha.io/ideas/INFX-I-400