Browse Source

Remove special cha Â

master
venkataakhil 2 years ago
parent
commit
5a441f14cc
  1. 2
      smart_service/transactions/doctype/procedure/procedure.py

2
smart_service/transactions/doctype/procedure/procedure.py

@ -15,7 +15,6 @@ class Procedure(Document):
for x in self.get("procedure_details"):
if x.content:
# try:
# title = x.content.encode('cp1252').decode('UTF-8')
# frappe.msgprint(str(x.as_dict())+":" +str(title))
res_str = re.sub("–", "", x.content)
@ -24,6 +23,7 @@ class Procedure(Document):
res_str = re.sub("’", "", res_str)
res_str = re.sub("“", "", res_str)
res_str = re.sub("”", "", res_str)
res_str = re.sub("Â", "", res_str)
x.content = res_str

Loading…
Cancel
Save