validate-utf8 0.1

Creator: bradpython12

Last updated:

0 purchases

validate-utf8 0.1 Image
validate-utf8 0.1 Images

Languages

Categories

Add to Cart

Description:

validateutf8 0.1

validate-utf8


Python library and CLI for validating UTF-8 text.
Install it like this:
pip3 install validate-utf8

The command-line tool works like this:
$ validate-utf8 20081104__wv__general__mason__precinct.csv
invalid continuation byte
Mason,28 COURTHOUSE-GROUND FLOORá,,,REP,Straight Ticket,15
^
invalid continuation byte
Mason,28 COURTHOUSE-GROUND FLOORá,,,DEM,Straight Ticket,21
^

Use it as a library like this:
from validate_utf8 import find_utf8_errors

errrors = find_utf8_errors(bytestring):
if not errors:
print("It is valid")
else:
print(errors)

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.