private void setEncoding(){
        String encoding = "cp1251";

        //if(Environment.isWin()) encoding = "Cp866";
        if(Environment.isWin()) encoding = "utf8";
        else if (Environment.isMac()) encoding = "utf8";
        else if (Environment.isUnix()) encoding = "utf8";

        message(Environment.getOsName() + " " + Environment.getOsVersion());
        try{
            System.setOut(new PrintStream(System.out, true, encoding));
        }catch (UnsupportedEncodingException e){
            message("cant set encoding for our");
        }
        try{
            System.setErr(new PrintStream(System.out, true, encoding));
        }catch (UnsupportedEncodingException e){
            message("cant set encoding for err");
        }
    }