ilto:patrick.divia...@gmail.com]
> > Sent: Monday, March 28, 2011 9:17 AM
> > To: java-user@lucene.apache.org
> > Subject: Re: file formats: MacRoman and UTF-8...
> >
> > hi, I'm using my own code:
> >
> >
> >
> > Writer writer = null;
>
H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: Patrick Diviacco [mailto:patrick.divia...@gmail.com]
> Sent: Monday, March 28, 2011 9:17 AM
> To: java-user@lucene.apache.org
> Subject: Re: file formats: MacRoman and
hi, I'm using my own code:
Writer writer = null;
try {
//File fileOutput = new File("output.trectext");
File fileOutput = new File(args[1]);
writer = new BufferedWriter(new FileWriter(fileOutput));
writer.write(contents.toString());
} catch (FileNotFoundException e) {
e.printStackTrace();
} cat
://www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: Patrick Diviacco [mailto:patrick.divia...@gmail.com]
> Sent: Monday, March 28, 2011 9:04 AM
> To: java-user@lucene.apache.org
> Subject: file formats: MacRoman and UTF-8...
>
> When I run my Lucene app and a parse
java -Dfile.encoding=utf-8
should do the trick.
Or... which java app are you using?
paul
Le 28 mars 2011 à 09:03, Patrick Diviacco a écrit :
> When I run my Lucene app and a parse a xml file I get the following error
> due to some fonts such as "é" written in the text file.
>
> If I save the
When I run my Lucene app and a parse a xml file I get the following error
due to some fonts such as "é" written in the text file.
If I save the text file as UTF-8 with my text editor I don't have this
issue, but when I create it with a java app, it is saved as MacRoman.
How can I specify a differ