Skip to content

Getting hexa code values instead of characters for Unicode code characters.  #483

Closed
@amitc005

Description

@amitc005
  1. What versions are you using?
    platform.platform: Linux-5.4.0-48-generic-x86_64-with-debian-buster-sid
    sys.maxsize > 2**32: True
    platform.python_version: 3.6.5
    cx_Oracle.version: 6.3
    cx_Oracle.clientversion: (12, 2, 0, 1, 0)

  2. Describe the problem
    When I am trying to fetch data from a database(NLS_CHARACTERSET is set to "WE8ISO8859P15"), Unicode texts are coming as "??" which is expected because cx_oracle is using ASCII by default. But when I am running this line export NLS_LANG=AMERICAN_AMERICA.AL32UTF8 and trying to fetch the same data, Unicode texts are coming as there hexa values like this "\x80\x99"

for example --> 'â\x80\x99'

I was wondering if someone can help me in this situation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions