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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:51:48+00:00 2026-06-13T09:51:48+00:00

Is the Java String data that I will fetch complete if I have special

  • 0

Is the Java String data that I will fetch complete if I have special characters like japanese, greek, chinese, korean, etc. characters stored in my mysql database?

To be clear my question is will the special characters that I fetched in mysql complete if I stored them in java string, and will I able to display them in character form when I use them for text components like JEditorPane

     String data;
     ResultSet r = sabiNa.executeQuery();
     while(r.next()) {
         data = r.getString("data");
     }
  • 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-13T09:51:49+00:00Added an answer on June 13, 2026 at 9:51 am

    Java is capable of storing ALL valid Unicode text. It uses UTF-16 internally.

    If you configure the entire data path correctly, all text will be preserved. You need to ensure:

    • The correct string reaches Java (in case of web applications, character encoding of the form being submitted).
    • Java knows it should be talking to the database in UTF-8 and the database knows it should be expecting UTF-8 through the connection. You ensure this when setting up the database connection.
    • Data is stored as UTF-8 in the database.

    Note that [the documentation for MySQL] claims UTF-8 is incapable of storing characters outside the Basic Multilingual Plane (all “normal” characters lie within BMP). UTF-8 itself is perfectly capable of storing all unicode characters and the database should be able to encode these characters as well.

    Java itself is fine – just remember some rare unicode characters are actually two characters (called a surrogate pair) in Java.

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

Sidebar

Related Questions

I have a Java server that will accept a connection from a python socket
I have a database with one row of data that will be used across
I have writted a Java program that will be able to add customers to
I'm doing a Java software-project at my university that mainly is about storing data-sets
public static void main(String Data[]) { ConnectionPoolDataSource dps; try { cnt=new InitialContext(); cnt.rebind(java:comp/env/jdbc/pool/dragon, dps);
Take the following Java string: Hello, World I want to take that string and
Can someone suggest me some JAVA string library for JAVA ME that includes basic
I try to decrypt data that was originally encrypted with Objective-C in Java. There
I'm developing a game in Java that will be packaged as an applet, and
I'm creating a java program that creates a file and fills it with data

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.