pastebin - collaborative debugging tool
readerware.kpaste.net RSS


Python read utf-16-be
Posted by Anonymous on Mon 17th Feb 2020 04:12
raw | new post

  1. #cat READERWARE | iconv -f UTF-16BE -t UTF-8 | cat
  2. #how to convert READERWARE UTF-16 Big Endian to UTF-8
  3.  
  4. file = open('READERWARE','r', encoding='utf-16-be')
  5.  
  6. line = file.readline()
  7. while line:
  8.     print(line)
  9.     # use realine() to read next line
  10.     line = file.readline()
  11.  
  12.  
  13.  
  14. Database Type: MySQL
  15. Login Name: loginname
  16. Password: pass
  17. URL: jdbc:mysql://localhost:3306/rwdb?serverTimezone=UTC
  18. Driver: com.mysql.jdbc.Driver
  19. Driver Location: /usr/share/java/mysql-connector-java-8.0.19.jar
  20. Script Location: /opt/readerware4/database/RW/mysql

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}





All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at