Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8483377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:05:11+00:00 2026-06-10T20:05:11+00:00

im having a problem with fetching data from Mysql 5.1 using JDBC (mysql-connector-java-5.1.18-bin.jar). my

  • 0

im having a problem with fetching data from Mysql 5.1 using JDBC(mysql-connector-java-5.1.18-bin.jar).

my insert into statement goes like this:

    INSERT INTO Categories  VALUES ('01','Matières premières');

and the output from Netbeans terminal and Swing Interfaces goes like this :

    MatiŠres premiŠres

i think that I need to specify the encoding parameters.

can you please help.

p.s: the OS is Windows 7 French.

this is my url to the database in class connection :

    DriverManager.getConnection("jdbc:mysql://X.X.X.X:XXXX/XXXX?useUnicode=yes&characterEncoding=UTF-8","XXXX","XXXX");
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T20:05:13+00:00Added an answer on June 10, 2026 at 8:05 pm

    Two solutions :

    • the sanest one : set your tables to use as collation “utf8-general-ci” and set mysql to use the same collation for connections. So you won’t have any problem and you won’t need to specify anything when connecting using jdbc.

    • another one, barely acceptable now but possible : determine what’s the collation of your tables and use it to configure your connection in JDBC as described here : http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-charsets.html . But you must know what’s the encoding of your tables (as you don’t know it and if you’re in France it may be Latin1).

    To determine or change the encoding of your tables you may use any mysql admin tool. Be sure to be coherent for the tables and connection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem with fetching some data. The tables I have (for testing
I'm having a problem with loading external pages into a DIV using jQuery. I
I'm having a mysqli data fetching problem. I will try to explain my problem
I'm having what seems to be a concurrency problem while using MySQL and PHP
i am having problems while fetching data from kml file. geoXml.parse(http://localhost/maps/phpmysqlajax_genkml.kml); error in console
I having trouble cause I am fetching some text from the db(mysql), that text
i am fetching data from database into table view in database table some roe
I am having problem on installing MYSQL using homebrew My system info are as
I am having problem using mvc:resources in spring 3.1 configuration. Initially i was working
I've got a Windows Forms Application that does some data fetching from various places.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.