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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:28:33+00:00 2026-06-18T07:28:33+00:00

I have a problem while trying to achieve Internationalization in JSF. When I enter

  • 0

I have a problem while trying to achieve Internationalization in JSF. When I enter some data in my UI Page (in lang other than English), that value is stored in my Managed Bean variable as an encrypted value(can’t even Identify what format is that). I can’t get the value as I entered it in my UI page.
I need to store the values of different languages(From JSF page) in my MySql Database. But I am Struggling to get the Input values in Managed Bean as I stated above.
Please guide me to do that.

Thanks in Advance

  • 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-18T07:28:34+00:00Added an answer on June 18, 2026 at 7:28 am

    Encrypted? You’re kidding. Most likely you actually meant Mojibake.

    In order to avoid Mojibake, you need to ensure that you use the one and the same character encoding throughout your entire application while producing and consuming characters. These days UTF-8 is a sane choice if you want world domination. JSF2 defaults to UTF-8 all the time already. So your problem is somewhat strange.

    Perhaps you’re actually using PrimeFaces? It’s known to mess the default UTF-8 character encoding when an ajax request is been fired. That part is answered here, you’d need to create a servlet filter.

    Or perhaps the value is actually correct, but you’re printing the value to an output which does not support UTF-8 at all and thus you incorrectly identified the cause of the problem? E.g. via System.out.println() in Eclipse console. You’d need to configure it via Window > Preferences > General > Workspace > Text file encoding as answered here.

    Or perhaps you explicitly forced the JSF2 encoding to something different by <f:view encoding>, e.g. to ISO-8859-1. You should not do that, remove the encoding attribute from the <f:view> and keep it default.

    Or very perhaps your MySQL DB/table encoding is not UTF-8 at all, but that would not match the problem symptoms you described, or you must have omitted the part that you’re actually printing the value retrieved from the DB instead of the value retrieved from the form submit.

    In any case, everything you need to know about character encoding in Java EE web applications, complete with all possible problems and solutions is elaborated in Unicode – How to get the characters right?

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

Sidebar

Related Questions

I have this problem I've been trying to tackle for a while. I have
I have been trying to solve this problem for a while, but couldn't with
I have been working on this problem for a while now. I am trying
I have problem while loading data into html select when users press or click
Have been trying to figure this problem out for a while now and was
I have a problem while trying to log in on Facebook for the second
Im trying to achieve the following: A certain page will have a series of
I have problem while using jquery maskedinput with asp.net textbox. I have a check
I have a problem while converting a string whose value is dd.mm.yyyy to DateTime
I have a problem while pasting my contents (or text) generated by Java code

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.