In your wp-config.php file:
below- define (‘WPLANG’, ”);
add- define( ‘CONCATENATE_SCRIPTS’, false );
This has been a fix for the visual editor since version 2.8
Immediately after I updated a new clients WordPress to 3.1.2 and noticed the error with the visual editor I applied this setting and it was fixed.