Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions


Posted on 2006-07-23
Last Modified: 2010-03-31
Hi guys,

I am confused now. I am trying to submit chinese input to my WebLogic app.

If I specified
<%@ page language="java" contentType="text/html;charset=ISO-8859-1"%>

it returns something like
&#24536; &#24535;...blah blah

but if I specified
<%@ page language="java" contentType="text/html;charset=UTF-8"%>

it returns me something like
&#xE5; &#xBF

Well, I think that the appropriate ways is to use UTF-8 but now I am confused why ISO-8859-1 is capable to handle &#24536;. I thought that ISO-8859-1 is only for Latin language and it should not accept Chinese (unicode)?

Question by:suprapto45
  • 3
  • 2
  • 2
LVL 13

Expert Comment

ID: 17165597
>> <%@ page language="java" contentType="text/html;charset=UTF-8"%>

there are few encoding schemes for unicode, try for all
UTF-16 works with chinese letter.


LVL 30

Expert Comment

by:Mayank S
ID: 17167828
>> I thought that ISO-8859-1 is only for Latin language and it should not accept Chinese

I guess it can handle Chinese too.
LVL 16

Author Comment

ID: 17172809
Thanks guys :),

marchent >> Can you explain me why my confusion above is happening?

mayankeagle >> Yeah, I think so but when I tried to *google* it, ISO only lists out English as well as Latin characters. There is no single site mentioning that ISO can handle Chinese in whatever way.

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

LVL 16

Author Comment

ID: 17172814

Why don't we have another thread to congratulate you, mayankeagle to reach Java genius?

Well, CONGRATULATION........you are one of the genius in Java now ;)

LVL 13

Accepted Solution

marchent earned 500 total points
ID: 17173499
i'm not sure why that is happening with u. but u can check here how the unicode encoded in various way


LVL 30

Expert Comment

by:Mayank S
ID: 17173678
>> Why don't we have another thread to congratulate you, mayankeagle to reach Java genius

Thanks :) I don't know - ask Venabili on her recent PE notifier thread ;-)
LVL 16

Author Comment

ID: 17174159

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
simple java question 3 59
fibonacci ten numbers 4 45
Opening PDF on button click and fill new document 2 47
Java exception bubble up 2 21
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

856 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