The moose likes I/O and Streams and the fly likes encoding of I/O Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Reply Bookmark "encoding of I/O" Watch "encoding of I/O" New topic
Author

encoding of I/O

stone eniac
Greenhorn

Joined: Dec 27, 2001
Posts: 3
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:
 
 
subject: encoding of I/O
 
Threads others viewed
UTF-8 query problem
Problem with file and writing UTF-8 information into file
Problem with file and writing UTF-8 information into file
Extended characters encoding in java
Writing txt file to unix
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture