Sign inSign up

akmot9/recode

By akmot9

Updated over 3 years ago

# CSV Encoding Fixer This script is used to fix encoding errors in CSV files

Image
0

198

akmot9/recode repository overview

CSV Encoding Fixer

This script is used to fix encoding errors in CSV files that contain non-ASCII characters. It replaces common encoding errors such as î, é, and → with their correct Unicode equivalents such as î, é, and -->.

Installation

  1. Clone this repository to your local machine using
git clone https://github.com/Akmot9/csv-encoding-fixer.git
  1. Install the required dependencies using pip install -r requirements.txt

Usage

  1. Place the CSV file you want to fix in the same directory as the script.
  2. Open a command prompt or terminal and pull the docker image
docker pull akmot9/recode:latest
  1. Run the script using the docker command :
docker run -v $(pwd):/data akmot9/recode:latest /data/name_of_input.csv /data/name_of_output.csv

Replace input_file.csv with the name of the CSV file you want to fix, and replace output_file.csv with the name you want to give to the fixed CSV file.

Encoding Errors

This script currently replaces the following encoding errors:

Errorsreplacer
îî
éé
→-->
ÜÜ
ùû
ââ
èè
Ãà
’'
€
娨
ØØ
塡
çç
娨
ØØ
塡
çç
ôô
«"
»"
ûû
êê
…ø
/øø
ÀA
ÉE
ÈE
Ãà
ÖÖ

License

This script is licensed under the MIT License. Feel free to modify and distribute it as needed.

Troubleshooting

If you encounter any issues with the script, please create an issue on the GitHub repository with a detailed description of the problem and any error messages you received. We will do our best to assist you in resolving the issue.

Tag summary

Content type

Image

Digest

sha256:48e916121

Size

332.4 MB

Last updated

over 3 years ago

docker pull akmot9/recode