'Is there a way to encode multiple types of .csv int the same readcsv?

I created a program to convert csv to xlsx however some of the csv only work return their content with utf16 encoding and others give me an error if i try to use it.

Is it possible to encode with multiple types or is there an encoding that works with both utf16 and latin-1 (the one I'm using for other csv)?

df = pd.read_csv(PATH, skiprows = 24, sep = ';', encoding = 'utf-16', quoting=3, names = COLS)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source