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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:57:31+00:00 2026-06-08T11:57:31+00:00

I create a locale, and try to create a ResourceBundle using said locale. If

  • 0

I create a locale, and try to create a ResourceBundle using said locale. If I use a finnish locale, ResourceBundle doesn’t seem to accept/understand it – instead it gets a null locale. When using an english locale, it seems to work just fine.

Locale obj = new Locale("en");
ResourceBundle resource = ResourceBundle.getBundle("web_resources", obj);
log.debug(resource.getLocale());
log.debug(obj);

Logs “en”, “en”.

Locale obj = new Locale("fi");
ResourceBundle resource = ResourceBundle.getBundle("web_resources", obj);
log.debug(resource.getLocale());
log.debug(obj);

Logs “”, “fi”.

I’ve also tested fr (french) and german (de) locales – they don’t work either. Adding country codes didn’t seem to help. What am I missing?

  • 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-08T11:57:32+00:00Added an answer on June 8, 2026 at 11:57 am

    I found the problem a month or so ago. The resource file had the wrong character encoding. If I remember correctly, the file is supposed to be in UTF-8, but at some point the encoding had changed to ISO 8859-4.

    A silly mistake, but nevertheless a valuable lesson learned.

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

Sidebar

Related Questions

I use cakePHP 2.0 and use the console tool to create one .../app/locale/default.pot .
Possible Duplicate: Set Locale programatically I would like to create an english/spanish option choice
How do you find valid locale names? I am currently using MAC OS X.
I installed postgres on my VM using Vagrant and Chef and when I try
Tried to use what's here , but that doesn't solve things for me. I've
When I try to create a new Maintenance Plan in SQL Server, I get
I tried to create databases with different encoding in postgres (I'm using PgAdmin as
I'm trying to programatically create a SharePoint site from a custom template using ASPX
I don't understand this: I use the __autoload feature in php and this works:
I'm using knockout js and the chosen plugin (https://github.com/harvesthq/chosen) to try and make 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.