Closed KAllan357 closed 5 years ago
Suggested fix is outlined here.
https://github.com/airbytehq/airbyte/issues/4405#issuecomment-870936481
decode_unicode=True
was causing errors so we open the tempfile in binary mode, write the raw bytes and then open the file for the csv reader using utf-8.
@KAllan357 Could you please check whether the suggestion provided in (https://github.com/airbytehq/airbyte/issues/4405#issuecomment-870936481) fix the issue? In our local environment, the issue is resolved (we had issues in reading Chinese characters from Marketo, this fix resolved it). Thanks.
Fix: Need to explicitly set the response encoding as 'utf_8' before iterating through the data.
decode_unicode=True
was causing errors so we open the tempfile in binary mode, write the raw bytes and then open the file for the csv reader using utf-8.