Solved

UTF-8 encoding in j2ee

Posted on 2010-11-14
6
400 Views
Last Modified: 2012-06-27
Hello,

How to setup utf-8 char encoding in j2ee app?

Thank you.
0
Comment
Question by:sahanz
  • 3
  • 2
6 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 333 total points
ID: 34130964
That's too open-ended a question. The answer could vary from 'nothing' (if your platform encoding is already utf-8) to several steps
0
 
LVL 1

Author Comment

by:sahanz
ID: 34130980
I think the the platform encoding is already UTF-8
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 333 total points
ID: 34130999
Then there really shouldn't be anything you need to do. You can test with the following

http://technojeeves.com/joomla/index.php/free/54-javasystemproperties
System.out.println(System.getProperty("file.encoding"));

Open in new window

0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 92

Assisted Solution

by:objects
objects earned 167 total points
ID: 34132584
you'll need to set the encoding on the page
and also use a filter to set the encoding on the request and response
0
 
LVL 1

Author Closing Comment

by:sahanz
ID: 34246596
Thanks, had to study more.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34247290
:)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
allswap challenge 6 96
Java - Why doesn't this JFrame work 3 59
Android development question 2 37
Adding multiple JVM environments to RedHat 6 7 20
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question