Hi everybody !

I'v got this slight problem with
a Turkish translation...

I'v searched the forum ans I'v
tried this:

StringBuffer str=new StringBuffer();
try{
InputStream is=getClass().getResourceAsStream("/level/trad.txt");
InputStreamReader reader=new InputStreamReader(is,"UTF8");
int buf;
while((buf=reader.read())>=-1){
if(buf!=0)
str.append((char)buf);
}
}catch(Exception ex){
System.out.println("test() Exception:"+ex);
}
String s=str.toString();
System.out.println("s="+s);



but I get an
java.io.UnsupportedEncodingException: Encoding UTF8 not found


I'v set my S40 emulator tu 'Turkish' but
it doesnt change anything...

Any idéas ?


Thanks !

/Ludvig Larsson