Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-ascii chars in EXIF #65

Open
villanueval opened this issue Oct 2, 2024 · 0 comments
Open

Non-ascii chars in EXIF #65

villanueval opened this issue Oct 2, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@villanueval
Copy link
Member

Need to allow for non-ascii characters in the EXIF metadata. Or allow for a better error handling when writing the log:

UnicodeEncodeError: 'ascii' codec can't encode character '\\u2013' in position 151: ordinal not in range(128)
File "/var/www/app/osprey_api.py", line 657, in api_update_project_details
  res = query_database_insert(query, row_data)
File "/var/www/app/osprey_api.py", line 86, in query_database_insert
  logger.info("parameters: {}".format(parameters))
Message: "parameters: ('2790513', 'tif', 'XMP-dc', 'Creator', 'creator', 'Smithsonian Digitization Program Office \xe2\x80\x93 Imaging Services', 'Smithsonian Digitization Program Office \xe2\x80\x93 Imaging Services')"
@villanueval villanueval added the bug Something isn't working label Oct 2, 2024
@villanueval villanueval self-assigned this Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant