Solved

Unicode

Posted on 2006-07-23
7
261 Views
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)?

David
0
Comment
Question by:suprapto45
  • 3
  • 2
  • 2
7 Comments
 
LVL 13

Expert Comment

by:marchent
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.

~marchent~

0
 
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.
0
 
LVL 16

Author Comment

by:suprapto45
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.

David
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 16

Author Comment

by:suprapto45
ID: 17172814
Btw,

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 ;)

David
0
 
LVL 13

Accepted Solution

by:
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

http://czyborra.com/utf/
http://www.cl.cam.ac.uk/~mgk25/unicode.html

~marchent~
0
 
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 ;-)
0
 
LVL 16

Author Comment

by:suprapto45
ID: 17174159
Thanks
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Where to store the queries for modification of table 4 62
rhino JavaScript import, load 25 84
javap bin 2 34
arguments to jar 5 26
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 …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 …
This video teaches viewers about errors in exception handling.

809 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