Skip to content

Unable to get unicode dsn (datasources) names #948

@nramya5

Description

@nramya5

Environment

  • Python: 3.7.9 (64-bit)
  • pyodbc: 4.0.32
  • OS: Windows 10
  • DB: SQL Server
  • driver: SQL Server

Issue

I've created both ASCII and Non-ASCII DSN names using windows ODBC datasources.

Observed behavior:

import pyodbc
pyodbc.dataSources()
{'tests': 'SQL Server', '???': 'SQL Server'}

Expected behavior

import pyodbc
pyodbc.dataSources()
{'tests': 'SQL Server', 'Привет': 'SQL Server'}

I'm unable to get the Non-ASCII DSN name.
Can some one help me out in resolving this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions