Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frictionless/detector/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def detect_encoding(
encoding = detector.result["encoding"] or settings.DEFAULT_ENCODING
confidence = detector.result["confidence"] or 0
if confidence < self.encoding_confidence:
# low confidence, so we try UTF8
# low confidence, so we try default encoding
# If decoding fails, we fallback to the detected encoding
# despite the low-confidence
detected = encoding
Expand Down
12 changes: 8 additions & 4 deletions frictionless/table/row.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,16 @@ def __eq__(self, other: object):
return super().__eq__(other)

def __str__(self):
self.__process()
return super().__str__()
s = ""
if not self.__processed:
s = "Unprocessed: "
return s + super().__str__()

def __repr__(self):
self.__process()
return super().__repr__()
s = ""
if not self.__processed:
s = "Unprocessed: "
return s + super().__repr__()

def __setitem__(self, key: str, value: Any):
try:
Expand Down
Loading