报的是什么错误啊?
不会是aStr为空了吧?

解决方案 »

  1.   

    想知道什么问题就踹
    try
    {}
    catch(Exception e)
    {}
      

  2.   

    "ProcessString.java": Error #: 360 : unreported exception: java.io.UnsupportedEncodingException; must be caught or declared to be thrown at line 17, column 17
      

  3.   

    编译时错误,TRY不能起作用。
      

  4.   

    getBytes()有意外抛出
    要用try{
    ...
    getBytes(...);
    ...
    }
    catch(Exception e)
    {
    }
    包括起来
      

  5.   

    iso8859-1
    ===>
    ISO-8859-1
      

  6.   

    好像应该这样写
    string = new String(aStr.getBytes("8859_1"),"GB2312");
    这是感觉,不知对不对。
      

  7.   

    感谢lucumu,使用try之后问题解决了。