[android-developers] problem with accented letters

2010-09-10 Thread Simone
I fill a TextView like this: TextView instructions=(TextView) findViewById(R.id.batteryInstructionsText); try { InputStream instrStr=res.openRawResource(R.raw.instructionsfile); byte [] text=new byte[580]; int i=instrStr.read(text); instructions.setText(new

Re: [android-developers] problem with accented letters

2010-09-10 Thread Kostya Vasilyev
Simone, You are using a byte array to read your data. When converting a byte array to a String, you should specify encoding. My guess is it's Western European, so you'd do: new String(someByteArray, iso-8859-1) Also your code tries to convert the entire byte array to String and then