Comments (4)
文字化け時のprint(response.encoding)
はISO-8859-1
。
ISO-8859-1
[{'id': '202209020804', 'race_number': 4, 'race_name': '3КаЬЄОЁЭј', 'race_date': '2022-09-02', 'race_time': '', 'type': '', 'length': 2200, 'length_class': 'Long', 'handed': '', 'weather': '', 'condition': '', 'place': '', 'course': '2200', 'round': None, 'days': None, 'head_count': 18, 'max_prize': 520.0}]
from nkparser.
ほかのレースIDで文字コードを確認した場合もISO-8859-1
になっているが、文字化けは発生していない。
ISO-8859-1
[{'id': '200108040211', 'race_number': 11, 'race_name': '第36回京都大賞典(G2)', 'race_date': '2001-08-04', 'race_time': '15:45', 'type': '芝', 'length': 2400, 'length_class': 'Long', 'handed': '右', 'weather': '晴', 'condition': '良', 'place': '京都', 'course': '京都芝2400', 'round': 4, 'days': 2, 'head_count': 7, 'max_prize': 6449.0}]
from nkparser.
netkeiba.com のメタタグには euc-jp
が設定されているため、文字コードを明示(response.encoding = response.apparent_encoding
から response.encoding = 'EUC-JP'
に変更)するように変更し、文字化けが発生しなくなったことを確認。
from nkparser.
Bugfix および テストケースの追加対応
from nkparser.
Related Issues (8)
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 nkparser.