We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a29d513 commit 8ce81ccCopy full SHA for 8ce81cc
pygmt/helpers/utils.py
@@ -188,7 +188,8 @@ def _check_encoding(argstr: str) -> Encoding:
188
charset["ZapfDingbats"].values()
189
)
190
for encoding in ["ISOLatin1+"] + [f"ISO-8859-{i}" for i in range(1, 17) if i != 12]:
191
- if all(c in (set(charset[encoding].values()) | adobe_chars) for c in argstr):
+ chars = set(charset[encoding].values()) | adobe_chars
192
+ if all(c in chars for c in argstr):
193
return encoding # type: ignore[return-value]
194
# Return the "ISOLatin1+" encoding if the string contains characters from multiple
195
# charset encodings or contains characters that are not in any charset encoding.
0 commit comments