vstoykovbg / nap-autopilot

Въвеждане на данни в годишната данъчна декларация автоматично.
MIT License
14 stars 0 forks source link

Mistake when running autopilot with dividends.csv #1

Open Valmi64 opened 5 months ago

Valmi64 commented 5 months ago

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 commented 5 months ago

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.