Skip to content

Commit

Permalink
handling non breaking space encoding
Browse files Browse the repository at this point in the history
Avoiding using unicode.normalize to avoid adding any unintended changes
Resolves #289
  • Loading branch information
Robbie1977 authored Jun 24, 2024
1 parent 3578136 commit 69bffea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/uk/ac/ebi/vfb/neo4j/neo4j_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def results_2_dict_list(results):

def escape_string(strng):
if type(strng) == str:
strng = re.replace(u'\xa0', u' ')
strng = re.sub(r'\\', r'\\\\', strng)
strng = re.sub('"', '\\"', strng)
return strng
Expand Down

0 comments on commit 69bffea

Please sign in to comment.