Skip to content

Commit 1775b24

Browse files
author
aviau
committed
line_protocol: Don't replace when decoding utf-8
1 parent 32f5bed commit 1775b24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/line_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _force_text(data):
5353
Try to return a text aka unicode object from the given data.
5454
"""
5555
if isinstance(data, binary_type):
56-
return data.decode('utf-8', 'replace')
56+
return data.decode('utf-8')
5757
else:
5858
return data
5959

0 commit comments

Comments
 (0)