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

Update pipelines to identify and load UTF-8 encoding #1095

Open
cha801p opened this issue Jul 24, 2024 · 0 comments
Open

Update pipelines to identify and load UTF-8 encoding #1095

cha801p opened this issue Jul 24, 2024 · 0 comments

Comments

@cha801p
Copy link
Contributor

cha801p commented Jul 24, 2024

When handling data that is not encoded in UTF-8 and has special characters, special characters can sometimes cause issues, leading to failed fetchers and failure with data pre-ingestion.

Action Required: A strategy is required to handle the specific encoded data in pre-ingestion. Potential solutions include:

  1. Identifying and handling non-UTF-8 encoded characters.
  2. Implementing error handling strategies such as errors='ignore' or errors='replace' in the file reading process.

Related Issues

Issue: The dr10574-ho-avh-weekly job has been consistently failing over the last few weeks. Upon further investigation, the failure was traced to an issue in the fetcher. The following error was noted:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 1786: invalid start byte
Upon thorough investigation of the data, an issue was observed with certain characters. The problematic data involves latitude and longitude values, specifically:
Latitude and longitude are automatically calculated from verbatim grid reference. Unadjusted latitude: 42�35'S. Unadjusted longitude: 147�52'E.,-42.583333,147.866119,EPSG:4202,50,0.000278,AMG 55 571100 5287900

Issue: NSW AVH reported a similar issue with UTF-8 encoding.
Example: AVH Occurrence Record
Supplied value: (Sessé & DC. ex Moç.) Coville
Processed value: R.Br.
Furthermore, the data provider supplied the reformatted data file with UTF-8 encoding which was loaded on the production.

Ticket Reference: Support Ticket #205967
GIT issue #1073

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants