commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 02/03: grc: replace non-printable character


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/03: grc: replace non-printable characters instead of ignoring them
Date: Wed, 29 Jul 2015 17:30:19 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit 533875ca9a3e0b91daa35ef7e1bc3da5e5e6e8f1
Author: Seth Hitefield <address@hidden>
Date:   Wed Jul 22 15:13:54 2015 -0400

    grc: replace non-printable characters instead of ignoring them
---
 grc/gui/Utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grc/gui/Utils.py b/grc/gui/Utils.py
index 624197f..90ebde0 100644
--- a/grc/gui/Utils.py
+++ b/grc/gui/Utils.py
@@ -97,7 +97,7 @@ def encode(value):
     character.
     """
 
-    valid_utf8 = value.decode('utf-8', errors='ignore').encode('utf-8')
+    valid_utf8 = value.decode('utf-8', errors='replace').encode('utf-8')
     return gobject.markup_escape_text(valid_utf8)
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]