Skip to content

'gbk' codec can't decode byte 0xa3  #74

@zhangqqqf

Description

@zhangqqqf
  1. What is your version of Python? Is it 32-bit or 64-bit?
    python3.6 64-bit
  2. What is your version of cx_Oracle?
    6.0.1
  3. What is your version of the Oracle client (e.g. Instant Client)? How was it
    installed? Where is it installed?
    11gR2
  4. What is your version of the Oracle Database?
    11g
  5. What is your OS and version?
    windows7
  6. What error(s) you are seeing?

Database language "ZHS16GBK"
The data contains illegal characters, e.g. \xa3\xa0,\xa4\x57, �
When cursor.fetchmany() handle the data contains illegal characters, throw Exception:
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa3 in position 18: illegal multibyte sequence

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions