Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
G
gracedb
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 99
    • Issues 99
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 1
    • Merge Requests 1
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • lscsoft
  • gracedb
  • Issues
  • #173

Closed
Open
Opened Sep 20, 2019 by Tanner Prestegard@tanner.prestegardMaintainer

Problems handling special characters in Python 3

Python 2

What we get from the LDAP:

sn = 'Budzy\xc5\x84ski'

What we pass to the database to be saved:

>>> unicode(sn, 'utf-8')
    u'Budzy\u0144ski'

The contents saved in the MySQL database (table uses UTF-8 encoding):

Budzyński

Python 3

What we get from the LDAP:

sn = b'Budzy\xc5\x84ski'

What we pass to the database to be saved:

>>> sn.decode('utf-8')
    'Budzyński'

The contents saved in the MySQL database (table uses UTF-8 encoding):

Budzy?ski
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: lscsoft/gracedb#173