Skip to content

Fixes: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 105: invalid start byte #1015#1018

Merged
bimalkjha merged 1 commit intoibmdb:masterfrom
bchoudhary6415:ibmdb_branch
Jul 2, 2025
Merged

Fixes: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 105: invalid start byte #1015#1018
bimalkjha merged 1 commit intoibmdb:masterfrom
bchoudhary6415:ibmdb_branch

Conversation

@bchoudhary6415
Copy link
Copy Markdown
Collaborator

This PR addresses issue #1015.

The UnicodeDecodeError occurred due to special (non-ASCII) characters in the error message returned by the CLI driver, such as:

"[IBM][CLI Driver][DB2/AIX64] SQL0420N In einem Zeichenfolgeargument der Funktion "INTEGER" wurde ein ungültiges Zeichen gefunden. SQLSTATE=22018"

The code now correctly handles error messages containing special characters. It works with both localized and English messages, including:

"[IBM][CLI Driver][DB2/AIX64] SQL0420N Invalid character found in a character string argument of the function "INTEGER". SQLSTATE=22018"

…#1015

Signed-off-by: Balram Choudhary <bchoudhary@rocketsoftware.com>
@bimalkjha bimalkjha merged commit e84428c into ibmdb:master Jul 2, 2025
1 check passed
@bchoudhary6415 bchoudhary6415 deleted the ibmdb_branch branch July 7, 2025 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants