Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

encoding of I/O  RSS feed

 
stone eniac
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there no way to know the encoding of a file?
If so,how can I read the file?
I want to find some lines in several .xsl files,but the encoding of these files are different(UTF-8 and UTF-16).
I found I can not read a UTF-16 file use UTF-8 encoding,vice versa.
How can I do with the case?
part code:
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!