Comments (4)
Kicad info:
Kicad Application: KiCad x64 on x64
Version: 7.0.9, release build
from kifield.
add encoding='utf-8', problem solved
from kifield.
Since you've identified the problem and have a potential fix, why not just issue a pull request?
from kifield.
Since you've identified the problem and have a potential fix, why not just issue a pull request?
Thanks.
I find it's not a good ideal to modify source file,because all the open function in source shoud be added "encoding='utf-8' ".
the reason of UnicodeDecodeError is the system encoding method,because when python open file,it use system default encoding.
I use windows in china,the default encoding is 'gbk',so when python open file ,it use 'gbk' codec to decode utf-8 file that cause error.
So the solution is set Python to utf-8 mode,just set the PYTHONUTF8=1 environment variable,no need to modify source file.
Python: Use the UTF-8 mode on Windows!
from kifield.
Related Issues (20)
- Representing inches with a quote mark causes causes import error HOT 5
- Add quantity column HOT 5
- Strange behavior generating .csv/.xlsx from hierarchical schematic with grouped components HOT 7
- If any field includes a new line, KiField recreates it without location information. HOT 4
- Excel file with numbers for footprint causes TypeError on insertion HOT 3
- [KiField Bug]
- Unknown file type for field extraction: foo.kicad_sym
- UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 4454: character maps to <undefined> HOT 1
- [KiField Bug] Missing dependency sexpdata for pip install HOT 1
- [KiField Bug] NameError: name 'reduce' is not defined HOT 1
- [KiField Bug] Incorrectly grouping components with unrelated values during extraction HOT 12
- [KiField Feature Request] No-range flag for spreadsheet output HOT 1
- Kicad 6 HOT 1
- Setting visibility fails due to missing "effects" property in Reference field
- Hierarchical V6 sch loading skips some fields
- [KiField Bug] Kifield not compatible with Kicad 7 HOT 5
- [KiField Bug] AttributeError: 'Sheet_V6' object has no attribute 'filename
- wildcards in filenames HOT 1
- Visibility not working on "Value" field
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kifield.