tmontaigu / shapefile-rs

Rust library to read & write shapefiles
MIT License
59 stars 19 forks source link

Character encoding #28

Open radi2015 opened 2 years ago

radi2015 commented 2 years ago

read shapefile can be assign "utf-8","gbk" for better read charactor code

Shape: Shape::Polyline(1 parts), records: former_nam: Character(None), Route_ID: Character(Some("99564")), Path_Name: Character(Some("������")),

tmontaigu commented 2 years ago

Does your .shp has a .cpg along with it ?

Are you able to share the file ?

Can you try to, read the file using dbase==0.3.0 with the yore feature as it added support for encodings