This should already be set if you are using the more recent Nutch
distributions. Please see build.xml and subsequently default.properties

hth

On Sat, Apr 7, 2012 at 8:03 PM, Mansour Al Akeel
<[email protected]>wrote:

> Try adding the @encoding to you <javac> in ant:
>  encoding="UTF-8"
>
> For example:
>
> <javac    .......
>       encoding="UTF-8">
>
>
>
> 2012/4/7 HaYa aziz <[email protected]>:
> >
> > Dear All..
> > In building a Nutch plug-in, I used to declare a string of Arabic word
> > while compiling using ant, I'm getting this error :
> >
> > "unmappable character for encoding UTF-8"
> >
> > trying the following but with no luck :
> >
> > String s = new String ("النوع");//the Arabic word
> >          byte[] utf8Bytes = s.getBytes("UTF8");
> >          byte[] defaultBytes = s.getBytes();
> >          s = new String(utf8Bytes, "UTF8");
> >
> > the exception appear in every singe Arabic character
> >
> > any help?
> >
> > Thanks
> >
>



-- 
*Lewis*

Reply via email to