Skip to content

Commit 009d45c

Browse files
committed
Handle unicode characters in message body of query results.
1 parent 0d83346 commit 009d45c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scalyr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ def printReadableRow(output, match):
275275

276276
message = message.rstrip()
277277

278+
if type(message) is unicode:
279+
message = message.encode('utf-8')
278280
attributes = match.get('attributes')
279281

280282
if output == 'singleline':

0 commit comments

Comments
 (0)