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

  • Home
  • SEARCH
  • 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 5968421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:05:15+00:00 2026-05-22T20:05:15+00:00

I have several Java files that have Japanese strings in them, and are encoded

  • 0

I have several Java files that have Japanese strings in them, and are encoded in UTF-8. I use Eclipse. However, whenever Eclipse touches them in any automated way, it turns the Japanese into garbage. A good example of this is JAWJAW, the Java Japanese WordNet interface. You can see the code on the website with Japanese characters in it. If you load the project into Eclipse, though, everything will fail because the characters are garbled (bakemoji).

Does anyone know how to fix this?

  • 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-22T20:05:16+00:00Added an answer on May 22, 2026 at 8:05 pm

    What is the default encoding for your project?
    Future version of Eclipse (like e4) could be set by default to UTF-8, which would avoid any automatic conversion into “garbage”.

    See bug 108668 for more on that reflexion:

    No solution will be perfect. However in the long term I think the current platform specific approach is clearly inferior to a platform-independent UTF-8 default.


    +1 UTF-8 should be the obvious default character set for all text files, I had
    a problem with eclipse when I was using an English Windows XP system and trying
    to open a file in eclipse with Chinese characters, as you can imagine the
    display is completely messed up and eclipse doesn’t tell me what I need to do.
    I had to spend time google for answers. I had to put -Dfile.encoding=UTF-8 in
    eclipse.ini so that it behaves correctly.


    Making UTF-8 the default is not the right solution for the problem you were
    having.


    +1 for embedding encoding in the character stream wherever we can (like XML, HTTP, some kinds of file systems).
    Encoding is meta-info for the data and belongs to the data, not to a separate user-changeable setup.

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

Sidebar

Related Questions

I use JAXB 2.1 to generate Java classes from several XSD files that I
We have several jobs that run concurrently that have to use the same config
I have several classes that need to load some properties files, and I was
I have mapped several java classes like Customer, Assessment, Rating, ... to a database
I need to convert several Java classes to C#, but I have faced few
I'm working on a java program, and I have several vectors defined and filled
I have been developing with Java for several years and last six months I
I have been tasked with converting several php classes into java classes, which is
I have several RequiredFieldValidators in an ASP.NET 1.1 web application that are firing on
I have several old 3.5in floppy disks that I would like to backup. My

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.