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 6351641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:02:44+00:00 2026-05-24T22:02:44+00:00

I am working on j2ee project. It is supposed to work width both english

  • 0

I am working on j2ee project. It is supposed to work width both english and russian language. So I have an EncodingFilter which has mapping ‘ /* ‘ and every time do one thing: request.setCharacterEncoding("UTF-8");

I also have MySQL 5.5 installed, the charset of tables and databases is set to utf-8 and collation to utf8_general_ci.

On my local machine everything works just fine, Russian lang properly stores in db.

Then I tried to test my app on jelastic.com . There I also selected MySQL, imported dump, set charset to utf-8 and collation to utf8_general_ci. When I am adding russian words to db I only see ‘?????’. But elder records which came with dump are fine! I have literaly no idea what is wrong.

  • 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-05-24T22:02:45+00:00Added an answer on May 24, 2026 at 10:02 pm

    You need to tell the MySQL JDBC driver to use UTF-8 as client side encoding instead of the platform default one. If the platform default charset is not UTF-8, then this will result in ? being stored in the database whenever a character is not covered by the platform default charset which the JDBC driver is using.

    You could do that by adding the useUnicode=yes and characterEncoding=UTF-8 parameters to the JDBC URL. E.g.

    jdbc:mysql://localhost:3306/db_name?useUnicode=yes&characterEncoding=UTF-8
    

    That it works on your local Java development environment is likely because you’ve already configured the platform default charset of your environment to be UTF-8.

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

Sidebar

Related Questions

I'm working in J2EE web project, which has lots of Java, SQL scripts, JS,
I have been working in Java/J2ee projects, in which I follow the Maven structure.
we have a J2EE app on which we're still working. It runs on Oracle
I am working on a j2ee project, which is a public website. The application
I am working on a old J2EE struts app which has very bad UI
I am working on a struts project which I am new to. I have
Working on a project at the moment and we have to implement soft deletion
Background about myself: I have about 3 years experience working in Java/J2EE. I am
I am working on a projec, the application is in j2ee and I have
I'm currently working on a j2ee project that's been in beta for a while

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.