recently I've stumbled upon this old python code:
for key, value in values.items(): item = value try: if type(item) is str: item = item.encode('windows-1252') item = item.decode('utf8') except BaseException: item = value finally: parsed_values[key] = itemreturn parsed_valuesIs there a valid reason to do such encoding conversion? Isnt utf8 going to not show some of windows-1252 characters if they are present?