#2105 always set utf8 pg client encoding
Merged 2 years ago by tkopecek. Opened 2 years ago by tkopecek.
tkopecek/koji issue2104  into  master

file modified
+1
@@ -189,6 +189,7 @@ 

          opts = {}

      try:

          conn = psycopg2.connect(**opts)

+         conn.set_client_encoding('UTF8')

      except Exception:

          logger.error(''.join(traceback.format_exception(*sys.exc_info())))

          raise

It breaks db tests for now, I'll fix them, if we agree that we want to use this fix.

I'm questioning the extent to which full unicode makes sense in a name field. I've filed #2117 for a larger discussion.

@mikem Yes, but this is relevant to any unicode entering the db, so e.g. extras in importCG

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

2 years ago

pretty please pagure-ci rebuild

2 years ago

Commit cb3e530 fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago

Metadata Update from @mfilip:
- Pull-request tagged with: testing-done

2 years ago