Giter Club home page Giter Club logo

Comments (4)

new-village avatar new-village commented on September 23, 2024

文字化け時の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.

new-village avatar new-village commented on September 23, 2024

ほかのレース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.

new-village avatar new-village commented on September 23, 2024

netkeiba.com のメタタグには euc-jp が設定されているため、文字コードを明示(response.encoding = response.apparent_encoding から response.encoding = 'EUC-JP'に変更)するように変更し、文字化けが発生しなくなったことを確認。

from nkparser.

new-village avatar new-village commented on September 23, 2024

Bugfix および テストケースの追加対応

from nkparser.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.