Skip to content

[DETECTION] from_path returns None for cp1251 encoded file #289

@TheKiber

Description

@TheKiber

Description
File content is not reading.
Method from_path returns None.

Steps to reproduce

  1. Copy test.txt to C:\test.txt
  2. Run _Charset-normalizer.txt as python script
  3. Ensure that from_path returns None

Expects
'from_path' result are the same or better than 'with open' result.

Logs

'with open' result:
	---- Начало операции с хранилищем конфигурации ----
	Объект захвачен для редактирования: РегистрСведе
'from_path' result:
	None
'from_path with cp_isolation' result:
	None

Desktop
OS: Windows 10 x64
Python version: 3.11.3
Charset-normalizer version: 3.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    detectionRelated to the charset detection mechanism, chaos/mess/coherence

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions