WLS 8.1.2 : unsupported encoding: 'UTF-8, UTF-16'
Hello,
We are porting a web service from WLS 7.0.4 to WLS 8.1.2.0.
It is a stateless session bean, we use "servicegen" to generate the WS deployment
descriptor and the client is PocketSoap 1.5
This web service worked fine with WLS 7.0.4, but with WLS 8.1.2.0, the server
can't build the HTTP response. It seems it doesn't understand the "Accept-Charset:
UTF-8, UTF-16" included in the HTTP request generated by PocketSOAP.
Is there some extra configuration parameter on the server since v8 to handle this,
or is it a regression ?
Here is the HTTP request :
===================
POST /ws-powertest/powertest HTTP/1.1
Host: diffool:82
Accept-Charset: UTF-8, UTF-16;q=0.8, iso-8859-1;q=0.8
Accept-Encoding: deflate, gzip
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
User-Agent: PocketSOAP/1.5.b1/PocketHTTP/1.1
Content-Length: 412
Authorization: Basic ZXJlbmF1ZDoxMjM0NTY3OA==
<S:Envelope
xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:a="http://www.bnpparibas.com/eqd/powertest"
xmlns:XS="http://www.w3.org/2001/XMLSchema"
xmlns:XI="http://www.w3.org/2001/XMLSchema-instance"><S:Body><a:getPositionAuthenticated
S:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><string XI:type="XS:string">IXOEURWLD</string></a:getPositionAuthenticated></S:Body></S:Envelope>
And the server-side stack trace :
=======================
java.lang.IllegalArgumentException: unsupported encoding: 'UTF-8, UTF-16': java.io.UnsupportedEncodingException:
UTF-8, UTF-16
at weblogic.servlet.internal.ServletResponseImpl.setEncoding(ServletResponseImpl.java:865)
at weblogic.servlet.internal.ServletResponseImpl.setHeader(ServletResponseImpl.java:674)
at weblogic.servlet.internal.ServletResponseImpl.setContentType(ServletResponseImpl.java:269)
at weblogic.webservice.binding.soap.HttpServerBinding.send(HttpServerBinding.java:131)
at weblogic.webservice.server.Dispatcher.dispatch(Dispatcher.java:105)
at weblogic.webservice.server.WebServiceManager.dispatch(WebServiceManager.java:98)
at weblogic.webservice.server.servlet.ServletSecurityHelper$3.run(ServletSecurityHelper.java:173)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.webservice.server.servlet.ServletSecurityHelper.authenticatedPortInvoke(ServletSecurityHelper.java:170)
at weblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke(WebServiceServlet.java:302)
at weblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.java:485)
at weblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServiceServlet.java:268)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
thanx for your help,
Emmanuel.
Hi Emmanuel,
Did you already try setting the -Dweblogic.webservice.i18n.charset Java system
property, on the command-line that starts the WLS instance, hosting the WebLogic
Web Service?
-Dweblogic.webservice.i18n.charset=utf-16
This sets the Accept-Charset for all WebLogic Web Services, so you probably want
to just set it in the web-services.xml, for powertest. I don't know what this
currently looks like, but you want to edit it (there is not servicegen option
to set it) to look something like:
<web-services>
<web-service
name="powertest"
targetNamespace="http://www.bnpparibas.com/eqd/powertest"
uri="/ws-powertest/powertest"
charset="UTF-16"
>
</web-service>
</web-services>
Refer to http://e-docs.bea.com/wls/docs81/webserv/i18n.html
HTH,
Mike Wooten
"Emmanuel Renaud" <[email protected]> wrote:
>
Hello,
We are porting a web service from WLS 7.0.4 to WLS 8.1.2.0.
It is a stateless session bean, we use "servicegen" to generate the WS
deployment
descriptor and the client is PocketSoap 1.5
This web service worked fine with WLS 7.0.4, but with WLS 8.1.2.0, the
server
can't build the HTTP response. It seems it doesn't understand the "Accept-Charset:
UTF-8, UTF-16" included in the HTTP request generated by PocketSOAP.
Is there some extra configuration parameter on the server since v8 to
handle this,
or is it a regression ?
Here is the HTTP request :
===================
POST /ws-powertest/powertest HTTP/1.1
Host: diffool:82
Accept-Charset: UTF-8, UTF-16;q=0.8, iso-8859-1;q=0.8
Accept-Encoding: deflate, gzip
SOAPAction: ""
User-Agent: PocketSOAP/1.5.b1/PocketHTTP/1.1
Content-Length: 412
Authorization: Basic ZXJlbmF1ZDoxMjM0NTY3OA==
<S:Envelope
xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:a="http://www.bnpparibas.com/eqd/powertest"
xmlns:XS="http://www.w3.org/2001/XMLSchema"
xmlns:XI="http://www.w3.org/2001/XMLSchema-instance"><S:Body><a:getPositionAuthenticated
S:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><string XI:type="XS:string">IXOEURWLD</string></a:getPositionAuthenticated></S:Body></S:Envelope>
And the server-side stack trace :
=======================
java.lang.IllegalArgumentException: unsupported encoding: 'UTF-8, UTF-16':
java.io.UnsupportedEncodingException:
UTF-8, UTF-16
at weblogic.servlet.internal.ServletResponseImpl.setEncoding(ServletResponseImpl.java:865)
at weblogic.servlet.internal.ServletResponseImpl.setHeader(ServletResponseImpl.java:674)
at weblogic.servlet.internal.ServletResponseImpl.setContentType(ServletResponseImpl.java:269)
at weblogic.webservice.binding.soap.HttpServerBinding.send(HttpServerBinding.java:131)
at weblogic.webservice.server.Dispatcher.dispatch(Dispatcher.java:105)
at weblogic.webservice.server.WebServiceManager.dispatch(WebServiceManager.java:98)
at weblogic.webservice.server.servlet.ServletSecurityHelper$3.run(ServletSecurityHelper.java:173)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.webservice.server.servlet.ServletSecurityHelper.authenticatedPortInvoke(ServletSecurityHelper.java:170)
at weblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke(WebServiceServlet.java:302)
at weblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.java:485)
at weblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServiceServlet.java:268)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
thanx for your help,
Emmanuel.
Similar Messages
-
Why does the header with encoding set to UTF-8 get rejected by the Oracle XML C++ V2 Parser when one of the features of this version is UTF-8 support?
Hi
If I change my document header from <?xml version="1.0" encoding="UTF-8"?> to <?xml version="1.0"?> then it parses without error. Will this situation change if I intall ORACLE_HOME? If so, why do I need to install ORACLE_HOME to get the XML Parser to work?
Thanks.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by xmlteam ([email protected]):
Hi,
Do you have your ORACLE_HOME set up correctly?
Thanks,
Oracle XML Team<HR></BLOCKQUOTE> -
CONVERSION FROM ANSI ENCODED FILE TO UTF-8 ENCODED FILE
Hi All,
I have some issues in conversion of ANSI encoded file to utf encoded file. let me tell you in detail
I have installed the Language Support for Thai Language on My Operating System.
now, when I open my notepad and add thai character on the file and save it as ansi encoding. it saves it perfectly and also I able to see it on opening the file again.
This file need to be read by my application , store in database and should display thai character on jsp after fetching the data from database. Currently it is showing junk character on jsp reason being that my database (UTF8 compliant database) has junk data . it has junk data because my application is not able to read it correctly from the file.
If I save the file with encoding as UTF 8 it works fine. but my business requirement is such that the file is system generated and by default it is encoded in ANSI format. so I need to do the conversion of encoding from ANSI to UTF8 . so Any of you can guide me on the same how to do this conversion ?
Regards
Gaurav NigamGuessing the encoding of a text file by examining its contents is tricky at best, and should only be done as a last resort. If the file is auto-generated, I would first try reading it using the system default encoding. That's what you're doing whenever you read a file with a FileReader. If that doesn't work, try using an InputStreamReader and specifying a Thai encoding like TIS-620 or cp838 (I don't really know anything about Thai encodings; I just picked those out of a quick Google search). Once you've read the file correctly, you can write the text to a new file using an OutputStreamWriter and specifying UTF-8 as the encoding. It shouldn't really be necessary to transcode files like this, but without knowing a lot more about your situation, that's all I can suggest.
As for native2ascii, it isn't for encoding conversions. All it does is replace each non-ASCII character with its six-character Unicode escape, so "voilá" becomes "voil\u00e1". In other words, it avoids the problem of character encodings by converting the file's contents to a form that can be stored as ASCII. It's mainly used for converting property or resource files to a form that can be read by the Properties and ResourceBundle classes. -
IF_IXML : How can i add encoding with value UTF-8 to the document object??
Hi
i want to create a xml file with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://....">
</OpenSearchDescription>
i did this with the if_ixml interface and rendered the content in a file 'D:\usr\sap\IFD\DVEBMGS01\log\TEST_out.xml
<?xml version="1.0"?>
<OpenSearchDescription xmlns="http://....">
</OpenSearchDescription>
BUT the document attribut(?) encoding="UTF-8"?> is missing!
How can i add encoding with value UTF-8 to the document object?? it should look like:
<?xml version="1.0" encoding="UTF-8"?>
*here is my coding.
TYPE-POOLS: ixml.
CLASS cl_ixml DEFINITION LOAD.
DATA: lo_ixml TYPE REF TO if_ixml,
lo_streamfactory TYPE REF TO if_ixml_stream_factory,
lo_document TYPE REF TO if_ixml_document,
lo_parent TYPE REF TO if_ixml_element,
lo_ostream TYPE REF TO if_ixml_ostream,
lo_renderer TYPE REF TO if_ixml_renderer,
lv_rc TYPE i.
lo_ixml = cl_ixml=>create( ).
lo_streamfactory = lo_ixml->create_stream_factory( ).
lo_document = lo_ixml->create_document( ).
lo_parent = lo_document->create_simple_element( name = 'OpenSearchDescription' "root node
parent = lo_document ).
lo_parent->set_attribute_ns( name = 'xmlns'
value = 'http://....' ).
*rausrendern in file
lo_ostream = lo_streamfactory->create_ostream_uri( system_id = 'D:\usr\sap\IFD\DVEBMGS01\log\TEST_out.xml' ).
lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream
document = lo_document ).
lv_rc = lo_renderer->render( ).
Thanks for help
BrittaUse the following code:
set an document encoding
l_encoding = l_ixml->create_encoding( character_set = 'UTF-8'
byte_order = if_ixml_encoding=>co_none ).
l_success = l_ostream->set_encoding( encoding = l_encoding ).
create a xml renderer
l_renderer = l_ixml->create_renderer( document = l_doc ostream = l_ostream ). -
IsSchemaValid does chang the xml-encoding header from UTF-8 to WINDOWS-1252
I found the following effect:
isSchemaValid does changing the encoding - entry of the xml-file-header
generating xml-file by using DBMS_XMLGEN :
xmldoc := DBMS_XMLGEN.getXML(ctx);
with the header of the file is
<?xml version="1.0" encoding="UTF-8"?>
change the xmldoc to a xmlType
and validate it against the schema
xmldoc_xmlType:=(xmltype(xmldoc)) ;
xmldoc_xmlType.isSchemaValid ( bSchemalocation)
after this the header of the file is
<?xml version="1.0" encoding="WINDOWS-1252"?>
my DB:
R11_2_0_2 / Windows 64
the same in
R11_2_0_1 / Windows 32
select name, value from v$parameter where upper(name) like '%NLS%'
nls_calendar
nls_comp BINARY
nls_currency
nls_date_format
nls_date_language
nls_dual_currency
nls_iso_currency
nls_language AMERICAN
nls_length_semantics BYTE
nls_nchar_conv_excp FALSE
nls_numeric_characters
nls_sort
nls_territory AMERICA
nls_time_format
nls_timestamp_format
nls_timestamp_tz_format
nls_time_tz_format
register my schema by:
dbms_xmlschema.registerSchema(
schemaurl => vschemaurl,
schemadoc => xsd_file,
local => FALSE,
gentypes => TRUE,
genbean => FALSE,
gentables => TRUE,
force => FALSE,
owner => dbuser
,CSID => nls_charset_id('AL32UTF8')
How can I let or change back the xml-encoding entry to UTF-8 ?
regardsYour solution should not be relied upon...
C:\Temp>sqlplus /nolog @t1 %CD%
SQL*Plus: Release 11.2.0.2.0 Production on Fri Mar 4 09:41:32 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> spool testcase.log
SQL> --
SQL> connect sys/oracle as sysdba
Connected.
SQL> --
SQL> set define on
SQL> set timing on
SQL> --
SQL> def XMLDIR = &1
SQL> --
SQL> def USERNAME = XDBTEST
SQL> --
SQL> def PASSWORD = &USERNAME
SQL> --
SQL> def USER_TABLESPACE = USERS
SQL> --
SQL> def TEMP_TABLESPACE = TEMP
SQL> --
SQL> drop user &USERNAME cascade
2 /
old 1: drop user &USERNAME cascade
new 1: drop user XDBTEST cascade
User dropped.
Elapsed: 00:00:00.24
SQL> grant create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &PASSWORD
2 /
old 1: grant create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &PASSWORD
new 1: grant create any directory, drop any directory, connect, resource, alter session, create view to XDBTEST identified by XDBTEST
Grant succeeded.
Elapsed: 00:00:00.07
SQL> alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
2 /
old 1: alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
new 1: alter user XDBTEST default tablespace USERS temporary tablespace TEMP
User altered.
Elapsed: 00:00:00.00
SQL> set long 100000 pages 0 lines 256 trimspool on timing on
SQL> --
SQL> connect &USERNAME/&PASSWORD
Connected.
SQL> --
SQL> create or replace directory XMLDIR as '&XMLDIR'
2 /
old 1: create or replace directory XMLDIR as '&XMLDIR'
new 1: create or replace directory XMLDIR as 'C:\Temp'
Directory created.
Elapsed: 00:00:00.00
SQL> create table XML_DEFAULT of XMLTYPE
2 /
Table created.
Elapsed: 00:00:00.11
SQL> create table XML_CLOB of XMLTYPE
2 XMLTYPE store as CLOB
3 /
Table created.
Elapsed: 00:00:00.01
SQL> select *
2 from nls_database_parameters
3 where parameter in ('NLS_LANGUAGE', 'NLS_TERRITORY', 'NLS_CHARACTERSET')
4 /
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CHARACTERSET AL32UTF8
Elapsed: 00:00:00.02
SQL> declare
2 XML_DEFAULT XMLType := xmltype('<?xml version="1.0" encoding="WINDOWS-1252"?><TEST>SELECT</TEST>') ;
3 XML_CLOB XMLType := xmltype('<?xml version="1.0" encoding="WINDOWS-1252"?><TEST>SELECT</TEST>') ;
4 begin
5 delete XML_DEFAULT;
6 delete XML_CLOB;
7 insert into XML_DEFAULT values (XML_DEFAULT);
8 dbms_xslprocessor.clob2file( XML_DEFAULT.getclobval() , 'XMLDIR','XML_DEFAULT.xml');
9 IF XML_DEFAULT.isSchemaValid ( 'SCHEMALOCATION_DOES_NO_MATTER_FOR_TEST_CASE.XSD', 'SCHEMA_NO_MATTER') = 1 THEN null; ELSE null; END IF;
10 commit;
11 dbms_xslprocessor.clob2file( XML_DEFAULT.getclobval() , 'XMLDIR','XML_DEFAULT_IS_VALID.xml',nls_charset_id('WE8MSWIN1252'));
12 dbms_xslprocessor.clob2file( XML_DEFAULT.getclobval() , 'XMLDIR','XML_DEFAULT_WIN1252.xml');
13 insert into XML_CLOB values (XML_CLOB);
14 dbms_xslprocessor.clob2file( XML_CLOB.getclobval() , 'XMLDIR','XML_CLOB.xml');
15 commit;
16 end ;
17 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.27
SQL> --
SQL> host type XML_DEFAULT.xml
<?xml version="1.0" encoding="WINDOWS-1252"?><TEST>SELECT</TEST>
SQL> --
SQL> host type XML_DEFAULT_IS_VALID.xml
<?xml version="1.0" encoding="UTF-8"?>
<TEST>SELECT</TEST>
SQL> --
SQL> host type XML_DEFAULT_WIN1252.xml
<?xml version="1.0" encoding="UTF-8"?>
<TEST>SELECT</TEST>
SQL> --
SQL> host type XML_CLOB.xml
<?xml version="1.0" encoding="WINDOWS-1252"?><TEST>SELECT</TEST>
SQL> --
SQL>First, the character set changes because isSchemaValid() causes the document to be parsed and converted to the internal database character set, as does storing it in a table.
It appear that your solution works in SQL because the semantics of SQL are such that it causes a 'copy' of the XMLType to take place before running the isSchemaValid() processing, were we to optimize away that copy as a result of a patch or performance optimization project then you solution would break...
If you want the output in a particular character set you should force that using XMLSerialize or getBlobVal(charsetid). Unfortunately we don't have a convience method for writing BLOBS on DBMS_XSLPROCESSOR... -
Character encoding (unicode to utf-8) conversion problem
I have run into a problem that I can't seem to find a solution to.
my users are copying and pasting from MS-Word. My DB is Oracle with its encoding set to "UTF-8".
Using Oracle's thin driver it automatically converts to the DB's default character set.
When Java tries to encode Unicode to UTF-8 and it runs into an unknown character (typically a character that is in the High Ascii range) it substitutes it with '?' or some other wierd character.
How do I prevent this.my users are copying and pasting from MS-Word. My DB
is Oracle with its encoding set to "UTF-8".Pasting where? Into the database? If they are pasting into the database (however they might do that) and getting bad results then that's nothing to do with Java.
Using Oracle's thin driver it automatically converts
to the DB's default character set.Okay, I will assume that is correct.
When Java tries to encode Unicode to UTF-8 and it
runs into an unknown character (typically a character
that is in the High Ascii range) it substitutes it
with '?' or some other wierd character.This is false. When converting from Unicode to UTF-8 there are no "unknown characters". I don't know what you mean by the "High Ascii range" but if your users are pasting MS stuff into your Java program somehow, then a conversion from something into Unicode is done at that time. If "something" isn't the right encoding then you have the problems already, before you try to write to the DB.
How do I prevent this.First identify the problem. You have input coming from somewhere, then you are writing to the database. Two different steps. Either of them could have a problem. Test them separately so you know which one of them is the problem. -
Default Character Encoding stuck on UTF-8 - Firefox 7
I cannot change the Character Encoding - it is stuck on Unicode UTF-8 and I can not change it! When a web page opens I get these little boxes with "FF FD" instead of Quote marks. When I change the character encoding on that page using "View->Character Encoding" and click on the Western (ISO-8859-1), the page displays correctly. Every page opens using Unicode UTF-8 as the default.
View->Character Encoding -- shows Unicode UTF-8 as the default.
View->Character Encoding->Auto-detect -- shows OFF
Tool->Options->Content->Advance->Fonts->Default Character Encoding -- shows Western (ISO-8859-1) as well as the "Allow Pages to choose their own fonts..." IS CHECKED in the check box
THE PAGES ARE NOT UTF-8!!!! The "View Page Source" IS NOT Unicode UTF-8! -- It shows <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">.
The "View Page Info" shows MetaTag - Content-Type: text/html; charset=iso-8859-1
Why can I not change the Default Character Encoding?
I would also like to point out that the Unicode UTF-8 seems to be broken because it is indicating that the QUOTE CHARACTER is an UNPRINTABLE character "FF FD"
----- EDIT -----
The UTF-8 is not broken. The problem as pointed out in http://en.wikipedia.org/wiki/Replacement_character#Replacement_character is that my Firefox being STUCK processing UTF-8 encoding cannot read the clearly marked iso-8859-1 data. So the UTF-8 is reinterpreting smart quotes -“ and ”- (“ and ”) as replacement (unprintable) characters.
So the real problem is why my Firefox is stuck on Unicode UTF-8The real problem is that the font that is used doesn't have those characters.
Do you see the special quotes -“ and ” on this forum page?
Does it help if you disable the website fonts and set another font as the default font?
*Tools > Options > Content : Fonts & Colors > Advanced
*http://en.wikipedia.org/wiki/Punctuation
*http://en.wikibooks.org/wiki/Unicode/Character_reference/2000-2FFF -
Unsupport encoding error in demo program
I downloaded the xdk C++ version 9.0.1 for Sun Solaris. I compiled the demo for parsers.
I run one of the demo program, I got the following error:
XML C++ DOM sample
Initializing XML package...
Failed to initialize XML parser, error 201.
error 201 which stands fo unsupport encoding.
Which encoding should I use for all the demo xml files?
thanks
EvaThe environment variable ORA_NLS33 must be set to point to the location of the NLS data files. On Unix systems, this is usually $ORACLE_HOME/ocommon/nls/admin/data. On Windows NT, this is usually $ORACLE_HOME/nlsrtl/admin/nlsdata. Starting with version 9.0.1, C and C++ XDK releases that are downloaded from OTN contain an nlsdata/ subdirectory. You must set the environment variable ORA_NLS33 to the absolute path of the nlsdata/ subdirectory if you don't have an Oracle installation.
-
Hi,
We have a requirement in which the payment list file generated after payment run(f110) is to be encrypted using utf-7 / utf-8 encoding.We are now using sap 4.6c version.
i tried using MD5 generator and client does't want that.
Are there any Function modules to encrypt the file into utf-7/utf-8 ?
Can you please share your views and help me to proceed further in the development.
Thankyou
GowriIf you want to upload it to Application Server use
OPEN DATASET dset FOR OUTPUT IN TEXT MODE ENCODING UTF-8.
"then transfer
If for download on desktop use
DATA itab_str TYPE TABLE OF string.
APPEND 'Some text in UTf-8' TO itab_str.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\utf.txt'
FILETYPE = 'ASC'
CODEPAGE = '4110' "UTF-8 codepage
tables
data_tab = itab_str.
Regards
Marcin -
WLS 7 JSP Jikes Compiler Encoding UTF8 Problem
Hi,
How are you doing? I am trying to configure Jikes as the default
compiler in WebLogic. I know some of you have configured Jikes as the
default compiler.
I get the following error only for some pages. Even though I get the
error the page is compiled successfully, but the error page is shown
in the browser. However, if I refresh the page then I will get the
next error. However, after a while every page will start working
fine. Even the new pages will compile just fine. Ideas, suggestions,
thoughts?
Is encoding option the culprit? When is the option included?
Thank you so much,
-Prakash
<Sep 11, 2002 10:38:33 AM PDT> <Error> <HTTP> <101046>
<[ServletContext(id=53596
2,name=web,context-path=/web)] Compilation of
C:\bea\user_projects\c2c\myserver\
.wlnotdelete\c2c_web_535962\jsp_servlet\_layouts\__mainlayout.java
failed:
Issued 4 system warnings:
*** Warning: "-encoding" is an invalid option; use: jikes
[-bootclasspath path][
-classpath path][-d dir][-debug][-depend|-Xdepend][-deprecation][-extdirs
path][
-g][-nowarn][-nowrite][-O][-sourcepath
path][-verbose][-Xstdout][++][+B][+c][+OL
DCSO][+D][+DR=filename][+E][+F][+Kname=TypeKeyWord][+M][+P][+Td...d][+U][+Z]
fil
e.java....
*** Warning: The file "C:\bea\jdk131_02\jre\classes" is not a valid
directory.
*** Warning: The file "C:\bea\weblogic700\server\lib\weblogic_sp.jar"
is not a v
alid zip file.
*** Caution: The input file "UTF8" does not have the ".java"
extension.
java.io.IOException: Compiler failed
executable.exec(java.lang.String[C:\jikes-1
.15\bin\jikes.exe, -classpath,
C:\work\dev\sonyc2c\web\WEB-INF\classes;C:\bea\us
er_projects\c2c\.\myserver\.wlnotdelete\c2c_web_535962\jarfiles\WEB-INF\lib\comm
ons-beanutils27902.jar;C:\bea\user_projects\c2c\.\myserver\.wlnotdelete\c2c_web_
535962\jarfiles\WEB-INF\lib\commons-collections27903.jar;C:\bea\user_projects\c2
c\.\myserver\.wlnotdelete\c2c_web_535962\jarfiles\WEB-INF\lib\commons-dbcp27904.
jar;C:\bea\user_projects\c2c\.\myserver\.wlnotdelete\c2c_web_535962\jarfiles\WEB
-INF\lib\commons-digester27905.jar;C:\bea\user_projects\c2c\.\myserver\.wlnotdel
ete\c2c_web_535962\jarfiles\WEB-INF\lib\commons-pool27906.jar;C:\bea\user_projec
ts\c2c\.\myserver\.wlnotdelete\c2c_web_535962\jarfiles\WEB-INF\lib\commons-servi
ces27907.jar;C:\bea\user_projects\c2c\.\myserver\.wlnotdelete\c2c_web_535962\jar
files\WEB-INF\lib\commons-validator27908.jar;C:\bea\user_projects\c2c\.\myserver
\.wlnotdelete\c2c_web_535962\jarfiles\WEB-INF\lib\struts27909.jar;C:\bea\user_pr
ojects\c2c\.\myserver\.wlnotdelete\c2c_web_535962\jarfiles\WEB-INF\lib\tiles2791
0.jar;C:\bea\user_projects\c2c\.\myserver\.wlnotdelete\c2c_web_535962\jarfiles\W
EB-INF\lib\junit27911.jar;C:\bea\user_projects\c2c\.\myserver\.wlnotdelete\c2c_w
eb_535962\jarfiles\WEB-INF\lib\aspectjrt27912.jar;C:\bea\user_projects\c2c\.\mys
erver\.wlnotdelete\c2c_web_535962\jarfiles\WEB-INF\lib\codigoxp_runtime27913.jar
;C:\bea\user_projects\c2c\.\myserver\.wlnotdelete\c2c_web_535962\jarfiles\WEB-IN
F\lib\codigoxp_support27914.jar;C:\bea\user_projects\c2c\.\myserver\.wlnotdelete
\c2c_web_535962\jarfiles\WEB-INF\lib\cactus27915.jar;C:\bea\user_projects\c2c\.\
myserver\.wlnotdelete\c2c_web_535962\jarfiles\WEB-INF\lib\cx_sonyc2c27916.jar;C:
\bea\user_projects\c2c\.\myserver\.wlnotdelete\c2c_web_535962\jarfiles\WEB-INF\l
ib\weblogic-tags27917.jar;C:\bea\user_projects\c2c\.\myserver\.wlnotdelete\c2c_w
eb_535962\jarfiles\WEB-INF\lib\poi27918.jar;C:\bea\user_projects\c2c\myserver\.w
lnotdelete\c2c_web_535962;C:\bea\jdk131_02\jre\lib\rt.jar;C:\bea\jdk131_02\jre\l
ib\i18n.jar;C:\bea\jdk131_02\jre\lib\sunrsasign.jar;C:\bea\jdk131_02\jre\classes
;C:\work\dev\sonyc2c\lib\CR079672_70.jar;C:\bea\jdk131_02\lib\tools.jar;C:\bea\w
eblogic700\server\lib\weblogic_sp.jar;C:\bea\weblogic700\server\lib\weblogic.jar
;.;C:\work\dev\sonyc2c\lib\jakarta-regexp-1.2.jar;C:\work\dev\sonyc2c\lib\common
s-logging.jar, -d, C:\bea\user_projects\c2c\myserver\.wlnotdelete\c2c_web_535962
, -encoding, UTF8, C:\bea\user_projects\c2c\myserver\.wlnotdelete\c2c_web_535962
\jsp_servlet\_layouts\__mainlayout.java])
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvo
ker.java:575)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:
354)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:414)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:214)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:168)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:447)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:287)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:376)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
cherImpl.java:542)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
cherImpl.java:368)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:119
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(Inser
tTag.java:757)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:369)
at jsp_servlet.__index._jspService(__index.java:111)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:376)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5369)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
>
I tried your suggestion. Now it works. Thank you so much,
-Bart Simpson
"nagesh" <[email protected]> wrote:
>
>jikes doesnt support the -encoding option
>so u can set compilerSupportsEncoding to false in your
>weblogic.xml (as a param-name in your jsp-descriptor)while using jikes
>as the
>compileCommand
>
>Error: The option "-encoding" is unsupported in this build.
>
>thanks
>Nagesh
>
>
>
>"Bart Simpson" <[email protected]> wrote:
>>
>>"Narayan Anand" <[email protected]> wrote:
>>>Which WLS version with SP?
>>
>>I am using WLS 7.0 If you have any other questions please do not hesitate
>>to
>>ask.
>>
>>Best regards...
>>-Bart Simpson
>>
>>>
>>>
>>>
>>>"Bart Simpson" <[email protected]> wrote in message
>>>news:[email protected]...
>>>> Hi,
>>>>
>>>> How are you doing? I am trying to configure Jikes as the default
>>>> compiler in WebLogic. I know some of you have configured Jikes as
>>>the
>>>> default compiler.
>>>>
>>>> I get the following error only for some pages. Even though I get
>>the
>>>> error the page is compiled successfully, but the error page is shown
>>>> in the browser. However, if I refresh the page then I will get
>the
>>>> next error. However, after a while every page will start working
>>>> fine. Even the new pages will compile just fine. Ideas, suggestions,
>>>> thoughts?
>>>>
>>>> Is encoding option the culprit? When is the option included?
>>>>
>>>> Thank you so much,
>>>> -Prakash
>>>>
>>>> <Sep 11, 2002 10:38:33 AM PDT> <Error> <HTTP> <101046>
>>>> <[ServletContext(id=53596
>>>> 2,name=web,context-path=/web)] Compilation of
>>>> C:\bea\user_projects\c2c\myserver\
>>>> .wlnotdelete\c2c_web_535962\jsp_servlet\_layouts\__mainlayout.java
>>>> failed:
>>>>
>>>> Issued 4 system warnings:
>>>>
>>>> *** Warning: "-encoding" is an invalid option; use: jikes
>>>> [-bootclasspath path][
>>>> -classpath path][-d dir][-debug][-depend|-Xdepend][-deprecation][-extdirs
>>>> path][
>>>> -g][-nowarn][-nowrite][-O][-sourcepath
>>>> path][-verbose][-Xstdout][++][+B][+c][+OL
>>>>
>>>DCSO][+D][+DR=filename][+E][+F][+Kname=TypeKeyWord][+M][+P][+Td...d][+U][+Z]
>>>> fil
>>>> e.java....
>>>>
>>>>
>>>> *** Warning: The file "C:\bea\jdk131_02\jre\classes" is not a valid
>>>> directory.
>>>>
>>>>
>>>> *** Warning: The file "C:\bea\weblogic700\server\lib\weblogic_sp.jar"
>>>> is not a v
>>>> alid zip file.
>>>>
>>>>
>>>> *** Caution: The input file "UTF8" does not have the ".java"
>>>> extension.
>>>>
>>>> java.io.IOException: Compiler failed
>>>> executable.exec(java.lang.String[C:\jikes-1
>>>> .15\bin\jikes.exe, -classpath,
>>>> C:\work\dev\sonyc2c\web\WEB-INF\classes;C:\bea\us
>>>>
>>>er_projects\c2c\.\myserver\.wlnotdelete\c2c_web_535962\jarfiles\WEB-INF\lib\
>>>comm
>>>>
>>>ons-beanutils27902.jar;C:\bea\user_projects\c2c\.\myserver\.wlnotdelete\c2c_
>>>web_
>>>>
>>>535962\jarfiles\WEB-INF\lib\commons-collections27903.jar;C:\bea\user_project
>>>s\c2
>>>>
>>>c\.\myserver\.wlnotdelete\c2c_web_535962\jarfiles\WEB-INF\lib\commons-dbcp27
>>>904.
>>>>
>>>jar;C:\bea\user_projects\c2c\.\myserver\.wlnotdelete\c2c_web_535962\jarfiles
>>>\WEB
>>>> -INF\lib\commons-digester27905.jar;C:\bea\user_projects\c2c\.\myserver\.wl
>>>notdel
>>>>
>>>ete\c2c_web_535962\jarfiles\WEB-INF\lib\commons-pool27906.jar;C:\bea\user_pr
>>>ojec
>>>>
>>>ts\c2c\.\myserver\.wlnotdelete\c2c_web_535962\jarfiles\WEB-INF\lib\commons-s
>>>ervi
>>>>
>>>ces27907.jar;C:\bea\user_projects\c2c\.\myserver\.wlnotdelete\c2c_web_535962
>>>\jar
>>>>
>>>files\WEB-INF\lib\commons-validator27908.jar;C:\bea\user_projects\c2c\.\myse
>>>rver
>>>>
>>>\.wlnotdelete\c2c_web_535962\jarfiles\WEB-INF\lib\struts27909.jar;C:\bea\use
>>>r_pr
>>>>
>>>ojects\c2c\.\myserver\.wlnotdelete\c2c_web_535962\jarfiles\WEB-INF\lib\tiles
>>>2791
>>>>
>>>0.jar;C:\bea\user_projects\c2c\.\myserver\.wlnotdelete\c2c_web_535962\jarfil
>>>es\W
>>>>
>>>EB-INF\lib\junit27911.jar;C:\bea\user_projects\c2c\.\myserver\.wlnotdelete\c
>>>2c_w
>>>>
>>>eb_535962\jarfiles\WEB-INF\lib\aspectjrt27912.jar;C:\bea\user_projects\c2c\.
>>>\mys
>>>>
>>>erver\.wlnotdelete\c2c_web_535962\jarfiles\WEB-INF\lib\codigoxp_runtime27913
>>>..jar
>>>>
>>>;C:\bea\user_projects\c2c\.\myserver\.wlnotdelete\c2c_web_535962\jarfiles\WE
>>>B-IN
>>>>
>>>F\lib\codigoxp_support27914.jar;C:\bea\user_projects\c2c\.\myserver\.wlnotde
>>>lete
>>>>
>>>\c2c_web_535962\jarfiles\WEB-INF\lib\cactus27915.jar;C:\bea\user_projects\c2
>>>c\.\
>>>>
>>>myserver\.wlnotdelete\c2c_web_535962\jarfiles\WEB-INF\lib\cx_sonyc2c27916.ja
>>>r;C:
>>>>
>>>\bea\user_projects\c2c\.\myserver\.wlnotdelete\c2c_web_535962\jarfiles\WEB-I
>>>NF\l
>>>>
>>>ib\weblogic-tags27917.jar;C:\bea\user_projects\c2c\.\myserver\.wlnotdelete\c
>>>2c_w
>>>>
>>>eb_535962\jarfiles\WEB-INF\lib\poi27918.jar;C:\bea\user_projects\c2c\myserve
>>>r\.w
>>>>
>>>lnotdelete\c2c_web_535962;C:\bea\jdk131_02\jre\lib\rt.jar;C:\bea\jdk131_02\j
>>>re\l
>>>>
>>>ib\i18n.jar;C:\bea\jdk131_02\jre\lib\sunrsasign.jar;C:\bea\jdk131_02\jre\cla
>>>sses
>>>>
>>>;C:\work\dev\sonyc2c\lib\CR079672_70.jar;C:\bea\jdk131_02\lib\tools.jar;C:\b
>>>ea\w
>>>>
>>>eblogic700\server\lib\weblogic_sp.jar;C:\bea\weblogic700\server\lib\weblogic
>>>..jar
>>>>
>>>;.;C:\work\dev\sonyc2c\lib\jakarta-regexp-1.2.jar;C:\work\dev\sonyc2c\lib\co
>>>mmon
>>>> s-logging.jar, -d,
>>>C:\bea\user_projects\c2c\myserver\.wlnotdelete\c2c_web_535962
>>>> , -encoding, UTF8,
>>>C:\bea\user_projects\c2c\myserver\.wlnotdelete\c2c_web_535962
>>>> \jsp_servlet\_layouts\__mainlayout.java])
>>>> at
>>>weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvo
>>>> ker.java:575)
>>>> at
>>>weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:
>>>> 354)
>>>> at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:414)
>>>> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:214)
>>>> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:168)
>>>> at
>>>weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
>>>> java:447)
>>>> at
>>>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
>>>> pl.java:287)
>>>> at
>>>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
>>>> pl.java:376)
>>>> at
>>>weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20)
>>>> at
>>>weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
>>>> va:27)
>>>> at
>>>weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
>>>> cherImpl.java:542)
>>>> at
>>>weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
>>>> cherImpl.java:368)
>>>> at
>>>weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:119
>>>> )
>>>> at
>>>org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(Inser
>>>> tTag.java:757)
>>>> at
>>>org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:369)
>>>>
>>>> at jsp_servlet.__index._jspService(__index.java:111)
>>>> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
>>>> at
>>>weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
>>>> (ServletStubImpl.java:945)
>>>> at
>>>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
>>>> pl.java:332)
>>>> at
>>>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
>>>> pl.java:376)
>>>> at
>>>weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20)
>>>> at
>>>weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
>>>> va:27)
>>>> at
>>>weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
>>>> n.run(WebAppServletContext.java:5369)
>>>> at
>>>weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
>>>> eManager.java:721)
>>>> at
>>>weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
>>>> rvletContext.java:3043)
>>>> at
>>>weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
>>>> pl.java:2466)
>>>> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
>>>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
>>>> >
>>>
>>>
>>
>
-
Reverting the Portal Encoding back to UTF-8 from UTF-16
Hi all
The portal configuration for encoding is changed to UTF-16 from UTF-8. After the changes the portal logon screen itself is coming with the junk values.
The changes are made according to the link below.
<b>File Based Configuration Properties</b>
http://help.sap.com/saphelp_nw04/helpdata/en/6a/39fb402eb5f76fe10000000a1550b0/content.html
The changes made are not reflected.
We can see that the value of the variable(runtime.doubleByteSupport.encoding
) is not changed in Visual admin.(Parameter Reporting in the Visual Administrator)
Can anyone help regarding this isssue...
Thanks in advance
GeogiAny Help???
-
DMEE: XML Encoding UTF-8/UTF-16
Hi,
I'm generating automatic payment files via program run SAPFPAYM_SCHEDULE.
The file is generated under UTF-8 but when generated on SAP server become UTF-16.
=> When double clicking on the Z_XML20022 and clicking on glasses you can see "<?xml version="1.0"
encoding="utf-8"?>"
=> When you have a look under AL11
/interfaces_sec/DECCLNT300/FI_payment_SAP032/out/PSAPCIT.PAYMENT_CN10_1. it's <?xml version="1.0"
encoding="utf-16"?>
I need to have utf-8.
Thanks in advance for your help.Hi,
If you using XSLT, you may use this transformation (based on your XML example, but simplified):
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:sap="http://www.sap.com/sapxsl"
xmlns:am="http://www.xxx.com/ActionMessage"
version="1.0">
<xsl:strip-space elements="*"/>
<xsl:output encoding="utf-8"/>
"your rest XML data"
</xsl:transform>
PS: I advise you to read the Note 1017101 - Encoding Problems with ABAP XML Processing, which explains better what I said above. -
XML Encoding Issue - Format UTF-16 to ISO-8859-1
Dear Groupmates,
I have data in my Internal table which i am converting to XML using custom Transformation.
Data is going to third party.The third party system requires data in ISO-8859-1 Format but SAP is generating the same in UTF-16 Format.I have been able to change the format of file from
utf-16 to ISO-8859-1 format but after conversion i am getting invalid tag information in form of characters
like < , > etc..in my file.
Here is the code i have used to set the encoding to ISO-8859-1 :-
DATA: xmlout TYPE xstring.
DATA: ixml TYPE REF TO if_ixml,
streamfactory TYPE REF TO if_ixml_stream_factory,
encoding TYPE REF TO if_ixml_encoding,
ixml_ostream TYPE REF TO if_ixml_ostream.
ixml = cl_ixml=>create( ).
streamfactory = ixml->create_stream_factory( ).
ixml_ostream = streamfactory->create_ostream_xstring( xmlout ).
encoding = ixml->create_encoding(
character_set = 'ISO-8859-1' byte_order = 0 ).
ixml_ostream->set_encoding( encoding = encoding ).
Sample Output :-
<?xml version="1.0" encoding="iso-8859-1"?>
<AMS_DOC_XML_EXPORT_FILE><AMS_DOCUMENT AUTO_DOC_NUM="FALSE" DOC_CAT="CA" DOC_CD="CA" DOC_DEPT_CD="045" DOC_ID="XR10281060830400001" DOC_IMPORT_MODE="OE" DOC_TYP="CH" DOC_UNIT_CD ="NULL" DOC_VERS_NO="01">
<CH_DOC_HDR AMSDataObject="Y">
<DOC_CAT Attribute="Y"><![CDATA[CA]]></DOC_CAT>
<DOC_TYP Attribute="Y"><![CDATA[CH]]></DOC_TYP>
Please let me know if anyone has idea how i can get rid of the invalid tag information.
Thanks !
With Regards,
Darshan MulmuleDarshan,
Did you get an answer for this question? We have same requirement to create XML file in ISO-8859-1 format with Attributes is set to "Y" and CDATA is being used for data.
Can you please let me know if you still remember how did you achieve it?
Satyen... -
Encoding conversion from UTF-16 to UTF-8
Hi all
I have a simple java String which is in UTF-16 format. I have to convert it to UTF-8 format coz my application expects UTF-8 only.
Can any body tell me what should i do for this???
thanksbut isn't it true that java supports only UTF-16 strings.
When i create the new String by using a UTF-8 byte array , what i feel is, it'll again convert it to UTF-16 data.
Suppose i have a String s1="dd" in UTF-16 format.
i have another one s2="ddd" in UTF-8 format
if i perform s1+s2 operation , how will JVL come to nkow about the encoding value for both strings??how will it perform the operation??
plz respond back and clear my doubt........ -
JAXB: Encoding error (Malformed UTF-8, trying to set ISO)
Hi, I get this error when doing a Unmarshaller.unmarshal( anURL );
DefaultValidationEventHandler: [WARNING]: Declared encoding "ISO-8859-1" does not match actual one "UTF-8"; this might not be an error.
DefaultValidationEventHandler: [FATAL_ERROR]: Character conversion error: "Malformed UTF-8 char -- is an XML encoding declaration missing?" (line number may be too low).
org.xml.sax.SAXParseException: Character conversion error: "Malformed UTF-8 char -- is an XML encoding declaration missing?" (line number may be too low).
at org.apache.crimson.parser.InputEntity.fatal(InputEntity.java:1100)
(...) etc..So far, I set the ISO-8859-1 encoding 4 places;
1. the xml response from the servlet: xml.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n\n")
2. the original XSD which the JAXB classes was generated from
3. In the client, after recieving the string containing the XML: bytes b[] = xmlString.getBytes("ISO-8859-1");
4. In the client; when posting to the server: httpConn.setRequestProperty("Content-Type","text/xml;charset=ISO-8859-1");
Yet, JAXB still thinks I'm doing UTF-8 here! Did I forget something?
thanks,
bjornbump .. no one knows why this happens?
Maybe you are looking for
-
Key Figure can't find mapping in transfer rules
Hi, I am trying to validate some data for datasource 2LIS_12_VCITM. I went through the transfer structure and it has the mapping of LFIMG Actual quantity delivered (in sales units) to 0DLV_QTY. However, when I tried to validate the key figure data, t
-
My old windows computer crashed and I had to buy another one. I rescued my itunes file off of the old one and installed it on the new desktop. How do I get itunes to recognize it so that I can get all my old music (mostly burned CD's) to be recogni
-
Encrypt/decrypt AES 256, vorsalt error
Hiyas. So I'm trying to get encrypt/decrypt to work for AES 256, with both 32byte key and 32byte IVorSalt. (Yup-new java security files v6 installed) 'IF' I 32byte key but dont use a IV at all, I get a nice looking AES 256 result. (I can tell it's AE
-
JPanel: How to set the defualt size
Hi there. When I run my application the main window is always too small. How can i set it to a reasonable size?? Thank you for any hints u may provide.
-
Reviews and ratings not showing up
Hi: All of the reviews are not showing up for our podcast. How do I get them to show up and how do I access them all. I know people have reviewed but I do not see their entry. https://itunes.apple.com/us/podcast/recurring-revenue-revolution/id5302790