Skip to content

cannot read chinese db path #142

@ilaer

Description

@ilaer

It will return db.Ping failed:I/O error during "CreateFile (open)" operation for file "D:\病例.G_B", when is use chinese db path like D:\病例.g_b.

dbFilePath := "D:\\病例.g_b"
conn, err := sql.Open("firebirdsql", fmt.Sprintf("sysdba:masterkey@localhost:3050/%s?charset=GB2312", dbFilePath))
if err != nil {
standard.XWarning(fmt.Sprintf("sql.Open failed:%v", err))
return
}
defer conn.Close()

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