Skip to content

Commit 8f9e561

Browse files
committed
Ignore non-ascii symbols instead of replacing them with question mark
1 parent ee9e61d commit 8f9e561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

process_pr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ def preprocess_comment_text(comment_msg):
923923

924924

925925
def ensure_ascii(string):
926-
return string.encode("ascii", "replace").decode("ascii", "replace")
926+
return string.encode("ascii", "ignore").decode("ascii", "ignore")
927927

928928

929929
def process_pr(repo_config, gh, repo, issue, dryRun, cmsbuild_user=None, force=False):

0 commit comments

Comments
 (0)