Solved

UTF-8 encoding in j2ee

Posted on 2010-11-14
6
399 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Protect jar file - windows app 2 38
Java - Why doesn't this JFrame work 3 40
Java SE 8u111  Lot of stuff broke 11 52
Spring Framework HTTPSession management 1 21
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

932 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now