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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:17:33+00:00 2026-05-27T00:17:33+00:00

When I process a properties file with the Spanish characters ó and é ,

  • 0

When I process a properties file with the Spanish characters ó and é, characters are displayed as ?. I tried different ways to fix this, but still fail:

  • I tried to use \uxxxx
  • I tried to use InputStreamReader with encoding UTF-8
  • I tried to convert string to bytes and then create a new String from those bytes:

    new String( val.getBytes("UTF-8"), "UTF-8")
    

Nothing worked. What should I do next to fix this issue? Japanese and Russian are still OK.

  • 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-27T00:17:33+00:00Added an answer on May 27, 2026 at 12:17 am

    The properties file needs to be in the proper encoding. By default some IDE’s like eclipse saves the content using CP1252 but you are requiring the file as UTF-8. This is also required for your java code.

    If you try to use \uxxxx characters but your application by default is working with CP1252 the conversion of the escape code result in a bad character.

    If you use the InputStreamReader to force the reading as UTF-8 but your code and/or your file are not using UTF-8 support result in a bad character.

    If you use UTF-8 conversion of an string but your source code is CP1252 you should have the same problem.

    Related previous answer about source code : Should source code be saved in UTF-8 format

    • Notepad ++ Has a menu to view the format of the file and change it in “Format” menu you should view the file as if it should be opened by other formarts or you should convert the file to other file formats like “UTF-8”
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to use custom build properties to drive the build process. Is it
I'm trying to use Apache Digester (V3) to process an XML file which contains
A Windows process created from an exe file has access to the command string
How to open an file's Properties dialog by a button private void button_Click(object sender,
I'm trying to filter a properties file in the asset directory of my project.
I have the following configuration in the file dataloader.properties filepath = /xx exchange =
I'd like to create a resource file (in the process of preparing for deployment),
My teams ant task pulls in developer specific info from a build.properties file by
Can I dump a properties file somewhere in one of the JBoss 6 directories,
I'm trying to read a value from a file and use it in a

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.