Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

vikasu

macrumors newbie
Original poster
Nov 6, 2007
12
0
Dear All,

I wrote the following code:-

Runtime rt = Runtime.getRuntime();
String strJapaneseName = m_bundle.getString("Name");
//strJapaneseName will contain Japanese characters let "によ"
String [] strCopyCmd = {"rm","/private/var/root/Desktop/"+strJapaneseName+".rtf"};
try
{
Process p = rt.exec(strCopyCmd);
} catch (IOException ex)
{ex.printStackTrace();}


Now place the によ.rtf file on Desktop, and change the locale to Japanese.
Run the code, it works fine on Leopard, but with the same scenario it doesn't work on Tiger.
Why?????

Please reply with ur suggestions.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.