• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WO, MySQL and UTF-8 issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO, MySQL and UTF-8 issue


  • Subject: Re: WO, MySQL and UTF-8 issue
  • From: François Reboursier <email@hidden>
  • Date: Thu, 16 Jun 2005 14:58:59 +0200


On Jun 16, 2005, at 12:37, 時期 精霊 wrote:
Never had problem with UTF-8, but just an advice to solve your problem.
Try to locate it. Save the user input in a file within java and verify that.
[...]
I cannot help you with mysql, but if java ouput wrong char, I can help.

    I've juste tested this, and the result is puzzlling:
If I save the user input to a file, forcing the file encoding to UTF-8, the accented chars appear as garbage (code below)
If I save the same user user input without forcing the encoding, the content of the file is fine...
    
    Does this look normal to you?

    Regards,

François

===== Sample code 1====
    File outputFile = new File("/tmp/encodingTest.txt");
    FileOutputStream out = new FileOutputStream(outputFile);
    OutputStreamWriter    writer = new OutputStreamWriter(out, Charset.forName("UTF-8"));
    writer.write(testObject.name());
    writer.close();

=========================


Attachment: PGP.sig
Description: This is a digitally signed message part

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: WO, MySQL and UTF-8 issue
      • From: 時期 精霊 <email@hidden>
References: 
 >WO, MySQL and UTF-8 issue (From: François Reboursier <email@hidden>)
 >Re: WO, MySQL and UTF-8 issue (From: 時期 精霊 <email@hidden>)

  • Prev by Date: Re: One app, multiple databases?
  • Next by Date: Re: WO 5.3 and deploy on tomcat
  • Previous by thread: Re: WO, MySQL and UTF-8 issue
  • Next by thread: Re: WO, MySQL and UTF-8 issue
  • Index(es):
    • Date
    • Thread