#cat READERWARE | iconv -f UTF-16BE -t UTF-8 | cat #how to convert READERWARE UTF-16 Big Endian to UTF-8 file = open('READERWARE','r', encoding='utf-16-be') line = file.readline() while line: print(line) # use realine() to read next line line = file.readline() Database Type: MySQL Login Name: loginname Password: pass URL: jdbc:mysql://localhost:3306/rwdb?serverTimezone=UTC Driver: com.mysql.jdbc.Driver Driver Location: /usr/share/java/mysql-connector-java-8.0.19.jar Script Location: /opt/readerware4/database/RW/mysql