Classification of text on Phyton
The mistake:
Traceback (most recent call last):
File “pythonProject9/main.py”, line 25, in
for line in f:
File "Shared\Python37_64\lib\encodings\cp1251.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 5961: character maps to
Client's review of cooperation with Denys S.
Classification of text on PhytonHe performed his work greatly.
Freelancer's review of cooperation with Yerkebulan Issayev
Classification of text on PhytonIt was pleasant to work!
The customer was always in contact.
I hope to continue cooperating on even more interesting and extensive tasks in the future.
-
Добрый !
Решение оборачивать отправляемые или получаемые данные с помощью функции encode('utf-8')data_name = data['name'].encode('utf-8')
При считывании и записи с файл, просто нужно добавить - encoding="utf-8"
with open('cafe-data.csv', newline='', encoding="utf-8") as csv_file:
Конвертировать текст из внутреннего представления Python в cp1251 очень просто:'текст'.encode('cp1251'). В итоге получаются байты, которые уже можно применить куда вам нужно. -
Current freelance projects in the category Python
Telegram bot for hiring/searching employees. For job searching.
25 USD
1. General Concept Creation of a Telegram bot for automating recruitment and mutual job searching. The system operates on the principle of active response and mutual confirmation of interest (Double Opt-In). The system includes two roles: Employer (Company Owner) and Worker (Job… Python, Bot Development ∙ 7 hours 11 minutes back ∙ 40 proposals |
Technical support for web platform (Python/Django)There is a working web project that needs to be maintained and gradually organized, without rewriting from scratch. Project stack: Backend: Python, Django, Django Rest Framework Frontend: Next.js Database: PostgreSQL Infrastructure: AWS (EC2), Nginx There are integrations… Python, Web Programming ∙ 9 hours 20 minutes back ∙ 36 proposals |
Development of a web service with paid access to an online chatGood day, it is necessary to develop a web service that includes: * personal links for users; * a page with a description of the service; * payment through PayPal; * online real-time chat; * video display on the user page; * accounting for paid time and automatic access… Python, Web Programming ∙ 1 day 10 hours back ∙ 67 proposals |
Application developmentI wish to create a mobile application for communication, the app should have audio and video calls, group chat creation, the ability to sync with phone contacts, account settings: email binding, 2FA, phone number, the ability to customize app notifications, change the app… Java, Python ∙ 2 days 8 hours back ∙ 36 proposals |
Setting up two-way integration of WhatsApp with Odoo CRMHello! We are looking for a specialist to implement a technical task for setting up a two-way integration of the WhatsApp messenger with the Odoo CRM system. ⚠️ Important technical clarification: The official WhatsApp Business API (WABA) is not considered. It is necessary to… Python, Web Programming ∙ 2 days 18 hours back ∙ 23 proposals |