Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Kana characters? (was Re: [jdom-interest] HELP!)

Kana characters? (was Re: [jdom-interest] HELP!)

2007-05-21       - By Grzegorz Kaczor

 Back
Reply:     1     2     3  

Hello,
I believe that the XML APIs like JDOM, XOM and similar do notimplement their
own UTF-8 (See http://UTF-8.ora-code.com) or any other encoding and useJava-implemented encodings instead. And
I believe that modern JavaUnicode implementation is based on Unicode 4.0 and
Kanji is one ofimplemented scripts. So it should work.
> Just out of curiosity, does someone have a sample of JDOM-generated XML> that
includes Hiragana and Katakana glyphs?   What about Kanji?  Is this> done with
the familiar encoding="UTF-8 (See http://UTF-8.ora-code.com)" at the beginning or something else?
I don't see anything extraordinary in creating an XML file with suchcharacters.
You can just paste them from webpages to your Java editor,I believe. However,
if your default system encoding is not UTF-8 (See http://UTF-8.ora-code.com), youshould use a switch when
compiling:
javac -encoding utf8 Utf8Test.java
If you have an XML file encoded with UTF-8 (See http://UTF-8.ora-code.com), you can omit the encodingin the
declaration - it is by default UTF-8 (See http://UTF-8.ora-code.com). However if you use lotsof non-standard
characters (for example, from outside of BMP), I wouldconsider using UTF-16 (See http://UTF-16.ora-code.com) to
decrease the file size.
To be strict, glyphs are graphical representations of characters.UTF-8 (See http://UTF-8.ora-code.com) and
other encodings only encode Unicode character codes assequences of bytes. Even
if you can process the characters using JDOMyou may be still unable to see them
due to missing fonts, for example.
Regards,Grzegorz
On 21/05/07, Alan Deikman <Alan.Deikman@(protected)> wrote:> Angela Amoateng wrote
:> > 1)Does  JDOM recognise and create an XML document containing Japanese> >
characters, specifically Hiragana? How will I go about this?> I have been using
JDOM for quite a while with great success, but I> haven't really encountered
this yet.>> Just out of curiosity, does someone have a sample of JDOM-generated
XML> that includes Hiragana and Katakana glyphs?   What about Kanji?  Is this>
done with the familiar encoding="UTF-8 (See http://UTF-8.ora-code.com)" at the beginning or something else?>>>
--> Alan Deikman> ZNYX Networks>> __ ____ ____ ____ ____ ____ ____ ____ ____ ___
_> To control your jdom-interest membership:> http://www.jdom.org/mailman
/options/jdom-interest/youraddr@(protected)>

-- "Cho? tyle wiemy w?asnym do?wiadczeniem:W nas jest Raj, Piek?o - i do obu -
szlaki."J.K.
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.