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

Mistake when running autopilot with dividends.csv #1

Open
Valmi64 opened this issue Mar 24, 2024 · 1 comment
Open

Mistake when running autopilot with dividends.csv #1

Valmi64 opened this issue Mar 24, 2024 · 1 comment

Comments

@Valmi64
Copy link

Valmi64 commented Mar 24, 2024

I am getting the following mistake:
An error occurred: 'utf-8' codec can't decode byte 0xd1 in position 40: invalid continuation byte
Validation errors. It's recommeded to correct the invalid data instead of continuing.

When opening the file with Notepad, the first two rows are
name,country,sum,paidtax
Broadcom Inc ,САЩ,149.89,17.54

If I go on the script opens the NAP site and tries to do something but encounters an error.

Best
Valentin

@vstoykovbg
Copy link
Owner

vstoykovbg commented Mar 28, 2024

Perhaps this issue is specific to Windows, possibly related to the encoding of the file (or line endings).

Please ensure that the file is encoded in UTF-8. You can try opening it with LibreOffice Calc and selecting "Save As" to save it as another .csv file. Additionally, you can try using a multi-platform text editor such as Geany which offers options to choose the encoding and line endings (from Document -> Set line endings). You may try different settings for line endings if only changing encoding to UTF-8 does not work.

If you use the standard ISO country codes (in order to avoid using non-ASCII characters) it will probably work.

I am creating the CSV files on Linux using gedit and LibreOffice Calc.

The files I edited on Linux seem to work fine on my Windows system.

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

No branches or pull requests

2 participants