Bug #11629 Prints '!'s to System.out for UTF-8 charsets
Submitted: 29 Jun 2005 6:20 Modified: 7 Jul 2005 19:53
Reporter: [ name withheld ] Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version:3.1.10 OS:Any (Any)
Assigned to: Mark Matthews CPU Architecture:Any

[29 Jun 2005 6:20] [ name withheld ]
Description:
Hi

Version 3.1.10 has a trace call in initCharset method of com.mysql.jdbc.SingleByteCharsetConverter printing exclamation marks to System.out if charset is utf8.

-- Ilkka

How to repeat:
See the source line 105.

Suggested fix:
Remove the println call.

public static SingleByteCharsetConverter initCharset(String javaEncodingName)
    throws UnsupportedEncodingException, SQLException {

    if ("utf8".equals(javaEncodingName)) {
        System.out.println("!");
        }
[12 Sep 2005 19:06] Troy Davis
I'm seeing this as well, sure does load up a log file unnecessarily....  Is there an eta on a new release that fixes this issue? Should I just build a copy from source with that println statement commented out?
[12 Sep 2005 19:16] Mark Matthews
Nightly builds have had this fixed for quite some time, see http://downloads.mysql.com/snapshots.php#connector-j