Campbell Ritchie wrote:If you ook for Charset, you find it gives yiou some of the better known encodings, but Windows‑1252 isn't among them. Don't know what to suggest, sorry. What happens if you pass, "Windows-1252" or "ISO8859‑1" to a Scanner constructor?
Campbell Ritchie wrote:Why are you using anything with stream in its name? If you want to read text always use classes with reader in their name. It doesn't usually go wrong until you go beyond the bounds of plain simple ASCII or need encoding.
Where does that encoding detector come from? Apache Tika?
You will need lots more information to understand what is going wrong with the Scanner. You are using the method as a sort of black box, with file in and output out. Please go inside the method and put some debugging code in, so you can see what is actually happening.
No such property : responseAttachments for class
Campbell Ritchie wrote:I am afraid that won't help you. If we think that is the actual code you are using, we shall end up answering the wrong question.
Beny Smith wrote:. . . . It is just a sample command in this case.
Norm Radder wrote:Typo???
just create a FileInputStream
Try FileOutputStream. FileInputStream will give: The system cannot find the file specified if the file doesn't exist.