|
|
@ -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 |
|
|
|