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.
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
This addresses two things:
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.
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 thewrite-in
column will be filled in based on whether that occurred. See issue: https://github.com/openelections/openelections-core/issues/274