This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
loading XML message with JAVA including Chinese text fails because of invalid UTF8 encoding
- From: Derous Benny <benny dot derous at consultant dot volvo dot com>
- To: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Date: Tue, 30 Apr 2002 17:47:52 +0200
- Subject: [xsl] loading XML message with JAVA including Chinese text fails because of invalid UTF8 encoding
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
I get an error message when trying to load chinese characters => invalid UTF8 encoding
This is the command I use to load the message :
java oracle.xml.parser.v2.oraxsl -d $INFILEDIR -i XML -s $PARSER_PATH -o $INFILEDIR -r JAVA -t 1 -e $INFILEDIR/parser_error.out
This fails with "invalid UTF8 encoding" but only for Chinese characters (English and Polish characters are loaded successfully). Chinese characters are multi-byte. Is this the reason why the message can not be loaded ? Do I need to set a different encoding in the message : <?xml version="1.0" encoding="UTF-8"> or do I need to set "lang" ?
I tried chaging the encoding value from UTF-8 to other character settings but many of them are not supported.
Anyone a suggestion ?
Specs :
- database : Oracle 8.1.7 database with character set UTF8
- os : IBM AIX 4.3.3 (Unix)
- Oracle XML parser for JAVA
- XSL 1.0 (XSL stylesheet)
Benny Derous
benny.derous@consultant.volvo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list