Russian character not showing well in java but is ok in php?
<p>We have a web application where the can insert russian character and in the mysql db it looks like this Ð”Ð¾ÑÑ‚Ð°Ð²ÐºÐ° Ð³Ñ€ÑƒÐ·Ð°. But when is viewed on the web is shows correctly in the russian character form. But when we do it in java application it showing up in this format Ð”Ð¾ÑÑ‚Ð°Ð²ÐºÐ° Ð³Ñ€ÑƒÐ·Ð°? Any help? </p>

<p>Part of the java codes are below.</p>

<pre><code>Statement stmt1 = null;
                         //System.out.println("\n\nSELECT selectOTACommand : "+selectOTACommand);
                         String select1 = "Select locName from tblLoc where locID=2280"
                         ResultSet rs1= stmt1.executeQuery(select1);
                         while(rs1.next()) 
                         {
                            System.out.println("Loc Name : "+rs1.getString("locName"));

                         }      

                          try{
                            if ( rs1 != null ){
                              rs1.close();
                            }
                            else{
                                System.out.println("MyError:rs1 is null in finally close");
                            }
                            if ( stmt1 != null ){
                              stmt1.close();
                            }
                            else{
                                System.out.println("MyError:stmt1 is null in finally close");
                            }
                          }
                          catch(SQLException ex){
                                System.out.println("MyError:SQLException has been caught for stmt1 close");
                                ex.printStackTrace(System.out);
                          }  
</code></pre>
