openelections / openelections-core

Core repo for election results data acquisition, transformation and output.
MIT License
179 stars 98 forks source link

Fix encoding and fill in Write In column for WI results #275

Closed nbdavies closed 5 years ago

nbdavies commented 5 years ago

This addresses two things:

  1. Wisconsin has some candidate names that include non-latin characters (Juan Colás for example). The ideal way to handle it seemed to be opening the file in binary and then reading the CSV contents using UTF-8.

  2. For Wisconsin results, write-in candidates have (Write-In) in the candidate name. Now when baking results, that will be removed from the candidate name and the write-in column will be filled in based on whether that occurred. See issue: https://github.com/openelections/openelections-core/issues/274