You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# if any item is a Control_Word which has a parameter, we assume that this is the parameter of \ansicpg, and that corresponds to the codepage we are looking for
53
56
ifitem.parameter:
54
57
param=item.parameter
58
+
else:
59
+
param=None
55
60
ifparam:
56
61
ifparam==65001:
57
62
logger.warning(
58
-
"Found encoding 65001, but often this is actually cp1252, so I'm overriding it"
63
+
"Found encoding '65001', but often this is actually 'cp1252', so I'm taking that"
59
64
)
60
65
encoding="cp1252"
61
66
else:
62
67
encoding=f"cp{param}"
63
68
else:
64
69
ifnames[0].control_name=="ansi":
65
-
encoding="ansi"
70
+
logger.warning(
71
+
"Found encoding 'ansi', but often this is actually 'cp1252', so I'm taking that"
0 commit comments