Url char-encoding problem

I am connecting to a web-server. The URL has Japanese characters embedded in it.
When run from NetBeans 6.8 everything works ok.
When run from the shell, the server appears to not understand the Japanese characters. For example, if the Japanese characters represent a user name, none of the names are ever understood.
Default charset when run from IDE is "UTF-8".
Default when run from shell: "Cp1252".
I don't want a systemic solution [for example a command-line switch, or config file setting]. I want to control every IO stream's encoding manually.
This is the test that comes closest to what I think should work:
ByteArrayOutputStream baos = new ByteArrayOutputStream();
OutputStreamWriter baosStreamWrt = new OutputStreamWriter(baos, utf8.newEncoder());
BufferedWriter bufWrt = new BufferedWriter(baosStreamWrt);
bufWrt.write(url_with_jp_characters);
bufWrt.flush();
ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
InputStreamReader inStreamRdr = new InputStreamReader(bais, utf8.newDecoder());
BufferedReader bufRdr = new BufferedReader(inStreamRdr);
String faulty_url = bufRdr.readLine();
URL webpage = new URL(faulty_url);
URLConnection urlConn = webpage.openConnection();
BufferedReader webIn = new BufferedReader(new InputStreamReader(urlConn.getInputStream(), utf8.newDecoder()));
BufferedWriter response = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("/tmp/dump.txt"), utf8.newEncoder()));
response.("checking the the url: ")
response.write(faulty_url);
response.newLine();
while(true) {
  String webLine = webIn.readLine();
  if(webLine == null) { break; }
  response.write(webLine);
  response.newLine();
response.close();
webIn.close();
....Inspecting the response from the server in the file "/tmp/dump.txt":
(1) the file is formatted "UTF-8".
(2) the url, written in the first line of the file, is valid and a cut/paste into a browser works correctly.
(3) many correctly formed Japanese words are in the response from the server that is saying: "I have no idea how to understand/(decode?) the user name you sent me in the URL."
At this point I have a choice:
(1) I don't understand the source of the problem?
(2) I need to keep banging away at trying to get the url correctly encoded.
Finally, how can I debug this???
(1) It works in the IDE, so I don't have those debugging tools.
(2) My terminal cannot display asian characters.
(3) Writing output to files involves another encoder for the FileWriter which taints everything in the file.
(4) I don't have a webserver to act as a surrogate for the real one.
thanks.

Kayaman wrote:
rerf wrote:
And I don't know why NetBeans allowed me to get around not using this command.Because of the default charset of UTF-8 that's set in Netbeans.I see that, but something more subtle was happeneing I think. I still don't fully understand. Here is my best explanation. Exact code:
....for(File f : files) {
  BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(f), utf8.newDecoder()));
  String jpName = in.readLine().split(";")[0];
  String jpNameForUrlUsage = URLEncoder.encode(jpName, "UTF-8");
  String dumpFileName = (outputDir + f.getName().split(".txt")[0] + "-dump.txt");
  BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(dumpFileName), utf8.newEncoder()));
  URL url = new URL("http://www.abc.cp.jp?name=" + jpNameForUrlUsage);
  URLConnection urlConn = url.openConnection();
}....In my first post, I formed the complete url, then encoded it to utf-8 using ByteArray[Input / Output]Streams. But, my understanding is that you can't just encode Japanese characters to utf-8 and then append them to a url. A special method call is needed to transform the Japanese characters into something understandable by the URL (and its not as simple as just encoding the characters to utf-8). After posting, I actually made an effort to read all of javadoc for java.net.URL:
java.net.URL
The URL class does not itself encode or decode any URL components according to the escaping mechanism defined in RFC2396. It is the responsibility of the caller to encode any fields, which need to be escaped prior to calling URL, and also to decode any escaped fields, that are returned from URL. Furthermore, because URL has no knowledge of URL escaping, it does not recognise equivalence between the encoded or decoded form of the same URL. For example, the two URLs:
http://foo.com/hello world/ and http://foo.com/hello%20world
would be considered not equal to each other.
Note, the URI class does perform escaping of its component fields in certain circumstances. The recommended way to manage the encoding and decoding of URLs is to use URI, and to convert between these two classes using toURI() and URI.toURL().....
Then, it all made sense. I had already diagnosed that it was just the Japanese character part of the URL that caused the failure. And I remember reading that the Chinese were upset that they could not use asian characters in URLs. So, even though in my browser it looks like a Japanese character is in it, its really not. Chrome browser is doing some transform from what I see in my browser URL and what the actual URL is. That is why cutting/pasting the url I was forming in Java into the browser is not a good representation of what is going on. Chrome, behind the scenes does what the URLEncoder class does.
Yet, I could very easily be wrong:
On the one hand NetBeans worked, and the shell did not. The relevant difference being default charset.
But on the other hand, in my initial post, I completely encoded that url into utf-8 using ByteArray[Input / Output]Streams. I am no expert on character encodings, but if the url I created in the initial posting is not utf-8 encoded then I need a few pointers on how to character encode.
final thought:
I can't just encode a Japanese character to UTF-8, append it to a URL, and expect it to work. A browser can make it look that way so its deceiving. That is why there is the class URLEncoder. I don't understand why NetBeans appears to invoke it for me without my knowledge. And maybe its not. Having the default charset as utf-8 might obviate the need for a URLEncoder() call (but I don't see why it should).

Similar Messages

  • Char Encoding Problem

    Hi every one. I looked over the forums to check if this problem was discussed before or not, and didn't find any thing
    I am running a JSP application accessing mySQL database, reading and displaying arabic records. This is the code:
                   String url   = "jdbc:mysql://localhost:3306/phpbb?characterEncoding=UTF-8";     //I tried "windows-1256 & cp-1256"
                   String query = "SELECT * FROM phpbb_posts_text";
                   try
                        Class.forName  ("com.mysql.jdbc.Driver");
    Connection con = DriverManager.getConnection( url, "root", "password" );
                        Statement stmt = con.createStatement ();
                        ResultSet rs = stmt.executeQuery (query);                         
                        while (rs.next())
                             out.print(rs.getString(1));
                             out.print(rs.getString(3));
                             out.print(rs.getString(4));
                        rs.close();
                        stmt.close();
                        con.close();
                   catch (Exception ex)
                        out.print(ex);           
                   }The problem is with the output, it comes in the same format I see it in mySQL shell (if I used windows-1256 arabic encoding)
    If I used UTF-8, the output comes as series of question marks "?? ???? ??? ??"
    Can any body help me in this issue?

    please try
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="java.sql.*" %>
    <%
         String url   = "jdbc:mysql://localhost:3306/phpbb?requireSSL=false&useUnicode=true&characterEncoding=utf8";     
         String query = "SELECT * FROM phpbb_posts_text";
         try
              Class.forName  ("com.mysql.jdbc.Driver");
              Connection con = DriverManager.getConnection( url, "root", "password" );
              Statement stmt = con.createStatement ();
              ResultSet rs = stmt.executeQuery (query);                         
              while (rs.next())
                   out.print(rs.getString(1));
                   out.print(rs.getString(3));
                   out.print(rs.getString(4));
              rs.close();
              stmt.close();
              con.close();
         catch (Exception ex)
              out.print(ex);           
    %>

  • Char encoding Problem with HibernateEM+Timesten11.2.1

    Hi,
    i have a very simple java application on Timesten11.2.1 which insert a VARCHAR2 value in a table and then read it back in String. I can insert it correctly, (i have checked it by ttisql command line) but i can not read the inserted value correctly from the table, what returned is unreadable characters.
    If i run my application on Timesten7 (same codes and same configuration with another ttjdbc.jar for timesten7.x), the inserted value can be correctly returned.
    The DatabaseCharacterSet of Timesten11.2.1 is WE8MSWIN1252 and my hiberante configuration like this:
                   <property name="hibernate.connection.driver_class" value="com.timesten.jdbc.TimesTenDriver"/>
              <property name="hibernate.dialect" value="*org.hibernate.dialect.TimesTen7Dialect*"/>
                   <property name="hibernate.show_sql" value="true" />
                   <property name="hibernate.connection.charSet" value="*UTF-8*"/>
    <property name="hibernate.connection.useUnicode" value="*true*" />
    I use Jdk1.5 and hibernate em 3.4.0.GA , ttjdbc5.jar and orai18n are all in classpath.
    does anyone have experience with HibernateEM+Timesten11.2.1? or do i forget something?
    Any help or advice would be appreciated !!
    (If someone have interest to test i can paste my whole source code here.)
    Thanks in advance
    stratocomit

    hi simon,
    The setting for Timesten7 is:
    connect "DSN=strato;pwd=secret;oraclepwd=secret";
    Connection successful: DSN=strato;UID=strato2;DataStore=/etc/TimesTen/tt70/data/strato;DatabaseCharacterSet=WE8ISO8859P1;ConnectionCharacterSet=US7ASCII;DRIVER=/etc/TimesTen/tt70/lib/libtten.so;OracleId=stratodata;Authenticate=0;PermSize=20480;TempSize=1024;TypeMode=0;
    (Default setting AutoCommit=1)
    and for Timesten11.2.1 is
    connect "DSN=ORADB33;uid=STRATO2;pwd=secret;oraclepwd=secret";
    Connection successful: DSN=ORADB33;UID=STRATO2;DataStore=/etc/TimesTen/tt1121/info/DataStore/ORADB33;DatabaseCharacterSet=WE8MSWIN1252;ConnectionCharacterSet=WE8MSWIN1252;LogFileSize=512;DRIVER=/etc/TimesTen/tt1121/lib/libtten.so;OracleId=ORADB33;LogDir=/etc/TimesTen/tt1121/info/DataStore/logs;PermSize=10240;TempSize=128;PassThrough=2;TypeMode=0;OracleNetServiceName=ORADB33;
    (Default setting AutoCommit=1)
    what i inserted is ASCII characters and ASCIISTR() does not help......I tyied to run JDBC example from the installation of Timesten11.2.1 e.g.TTJdbcExamples.java , i still get the unreadable characters..........:(

  • Encoding problem in call-back to hook URL (post parameters)

    Hello all,
    I'm encountering a character encoding problem while retrieving the content of the shopping basket from one of our provider.
    After the POST request is made by the provider to our system using the hook url, when debbuging I can see that some special characters are represented with the sign '#' (after the call the ITS_IMPORT_CONTEXT).
    In our case using the parameter http_content_charset with various values, including UTF-8, did not change the result.
    Inspecting the HTTP traffic has highlighted the following: the encoding received from the provider is related to UTF-8, but while we are expecting the hexadecimal values, we are receiving the "Unicode code points", which are not recognized by our SAP system. For more details look at the UTF-8 encoding table found here and compare the values under column "Unicode code point" with the one under column "UTF-8 (hex.)".
    As an example, for the character 'é', we are receiving the value "%E9" (the code point) instead of receiving the the hexa value : "%C3%A9".
    Do you have any idee if this can be corrected on our side or if the provider must addapt the way it's sending the POST parameters?
    Many thanks in advance for you help.
    Best regards,
    Jerome.

    Hi Jason,
    Indeed I had contacted the provider and informed them about the encoding problem and the fact that passing the parameter http_content_charset had no effect on the sent back encoding.
    They have taken into account my request and have changed the encoding used during the request to the HOOK_URL.
    Thanks to all of your for your help.
    Regards,
    Jerome.

  • Character encoding problem using XSLT and Tomcat on Linux

    Hi,
    I have an application running on a Tomcat 4.1.18 application server that applies XSLT transformations to DOM objects using standard calls to javax.xml.transform API. The JDK is J2SE 1.4.1_01.
    It is all OK while running on a development enviroment (which is Windows NT 4.0 work station), but when I put it in the production enviroment (which is a red hat linux 8.0), it comes up with some kind of encoding problem: the extended characters (in spanish) are not shown as they should.
    The XSL stylesheets are using the ISO-8859-1 encoding, but I have also tried with UTF-8.
    These stylesheets are dynamicly generated from a JSP:
    // opens a connection to a JSP that generates the XSL
    URLConnection urlConn = (new URL( xxxxxx )).openConnection();
    Reader readerJsp = new BufferedReader(new InputStreamReader( urlConn.getInputStream() ));
    // Gets the object that represents the XSL
    Templates translet = tFactory.newTemplates( new StreamSource( readerJsp ));
    Transformer transformer = translet.newTransformer();
    // applies transformations
    // the output is sent to the HttpServletResponse's outputStream object
    transformer.transform(myDOMObject, new StreamResult(response.getOutputStream()) );Any help would be appreciated.

    Probably you need to set your LANG OS especific environment variable to spanish.
    Try adding this line:
    export LANG=es_ES
    to your tomcat/bin/catalina.sh, and restart tomcat.
    It should look like this:
    # OS specific support.  $var _must_ be set to either true or false.
    cygwin=false
    case "`uname`" in
    CYGWIN*) cygwin=true;;
    esac
    export LANG=es_ES
    # resolve links - $0 may be a softlink
    PRG="$0"
    .(BTW, keep using ISO-8859-1 encoding for your XSL)
    HTH
    Un Saludo!

  • C# GWTypeLibrary - AddressBook Entry encoding problem

    Hello.
    I am using C#(Visual Studio 2005) and GroupWareTypeLibrary to develop for
    GroupWise Client 7.0.
    Working with AddressBook I have faced some problems.
    I am getting display name (AddressBookEntry.DisplayName) for all entries
    of AddressBook. Almost all DisplayNames are correct but there are some
    problems with two or three of them (there are some illegal char displayed
    instead of some char of real user DisplayName). I think it is local
    encoding problem bekause I see the same problem with the same users in
    GroupWise Client AddressBook.
    I thought display name is building not correctly but when I tried to get
    these users first and last name I have got the same problem with encoding
    in them.
    Please advice how to decide this problem.
    Regards,
    Alex.

    Sounds like a GW Client problem and not an API problem if you see it in the client address book. Technical Support should be able to help you.
    Glade,
    Novell Developer Support

  • Encoding problem (via ORB)

    Hello,
    I posted this problem few months ago, but still havent been able to solve this.
    I have a Client Server program which communicates via ORB, i.e. using CORBA, with server running on Solaris OS and Client running on windows.
    The server returns string containing chinese characters to the client.
    However, my chinese characters dont appear properly on the client side.
    If i run the client on the Solaris OS there is no problem with it.
    I tried converting the encode of the string by getting its byte and creating
    a new string with encoding parameter. None of this seems to work.
    I can see the chinese character when the server is writing to OutputStream of CORBA, but on the InputStream of CORBA it does not
    show properly.
    Any ideas on how i can overcome this encoding problem where the C/S is
    communicating via CORBA (ORB)?
    Thanks in advance.

    Thanks for your reply
    Yes, i know the BIG5 is for Traditional Chinese and japansese is using like Shift-JIS or EUC.
    So when i try to post japanese in a BIg5 web page, i think it's normal that i can't see it in BIG5 encoding.
    But then i change the Safari default decoding to BIG5 HKSCS, the japanese appers! At the same time i can see the traditional chinese too!
    And if i use Firefox, i can both see the japanese and chinese at the default BIG5 encoding.
    So i simple think maybe safari translate my japanese into BIG5 HKSCS,not Shift-JIS. But if i use Firefox, i can get the same result with only BIG5 encoding, not BIG5 HKSCS. So i am just wondering why it's different between Safari and Firefox with the same BIG5 encoding.
    Following is a example URL
    It's a MAC discussing froum with BIG5 encoding in Taiwan.
    http://ubb.frostyplace.com.tw/viewtopic.php?t=19162
    It's a froum topic posted by me. I input some japanese into this topic
    If you browse this page with Safari BIG5 encoding, you can see a lot of question mark instead of the original japanese word that i and other people posted.
    But if you change the encoding to BIG5 HKSCS, the japanese appears. And if you using Firefox with BIG5 encoding, the japanese appears too.
    So is it someing wrong with Safari's BIG5 encoding or some other reason makes this happen?

  • View Object Encoding problem

    I'm using Jdeveloper version 11.1.2.1. I have a encoding problem when creating View Object based on a query. This is my query:
    select id, DECODE(id,'11','Индивидуално,'13','Semejno','14','Grupno') naziv
    from ins_type
    where class_id = '14' and id in ('11', '13', '14')
    It is a simple LOV query with cyrilic letters. When I save the ViewObject and re-open it im getting question marks(???????) instead of the cyrilic letters. This only happens in the view object. I dont have other encoding issues when working with cyrilic letters only when im trying to build a View Object based on a query that has cyrilic letters. If i read those values from the database everything is fine
    Thanks,

    Change the encoding of your application to UTF-8 which appears to be sufficient for cyrilic chars. Here is a quick guide on how to do this http://docs.oracle.com/cd/E17984_01/doc.898/e14693/appa_configuring_jdev.htm
    You may also need to update any pages that have encoding explicitly set

  • Urgent , encoding problem

    Hi ,
    i have received very important msg from ministry , but i cannot read it
    its be like this : &#29184;&#26880;&#24832;&#27648;&#8704;&#15872;
    i want to convert it to arabic chars ,
    any ideas ?

    Yes, it's an encoding problem. And no, the damagehas
    already been done by applying an incorrectencoding.
    This cannot be reversed.so there is no solution for this ?Yep you're fucked.
    The Ministry of Double Ungood Codings will be coming to collect you shortly so that you might be educated with the double plus good ways.

  • How is Default Char encoding for WebLogic determined ?

    How is the defualt char encoding for a Weblogic server determined?
    We have two environments each running Weblogic 5.1 sp8 on Solaris 7. One is production,other
    is for testing.
    For testing german characters I use a TestGlobal.jsp to read parameters using
    servlet API. From the same browser I access this URL
    http://www.xyz.com/TestGlobal.jsp?userName=Tschüß.
    In one I get the param Tschüß correct in the other I get Tschýý
    I know for sure both the properties file are exactly the same.
    I also know that I can work it using the new char encoding property for western
    european alphabts. I want to know how does this work without setting the char
    encoding prop. How is weblogic recognising Tschüß without this prop being set.
    Does the underlying OS make the difference ?
    THanks
    Atish

    In this specific case there are no differences for code points storing character data because used character set is the same.
    But what is your Oracle 4 digits version ?
    Are you sure that database character set and national character set are the same ?
    In recent Oracle versions, database character set and national character set are different. For example:
    SQL> select * from nls_database_parameters where parameter like '%SET%';
    PARAMETER                      VALUE
    NLS_CHARACTERSET               AL32UTF8
    NLS_NCHAR_CHARACTERSET         AL16UTF16Edited by: P. Forstmann on 28 sept. 2011 18:51

  • Encoding problems

    Hi,
    I have some problems with the encoding of my URL. In the browser the URL is encoded as it should be (everything is UTF-8) but after calling the requests getParameter method the parameter is not encoded correct anymore.
    The param on the jsf page looks like this: search.html?q=ger%C3%BCste but the paramter I get is gerüste which I cannot decode anymore.
    I have no idea what can cause this because in between I do not do anything myself.
    Thanks for help,
    Markus

    I had similar Problem. We used GlassFish v3 and made the following entry in sun-web.xml:
    <locale-charset-info default-locale="">
    <locale-charset-map locale="" charset=""/>
    <parameter-encoding default-charset="UTF-8"/>
    </locale-charset-info>
    (It was iniially set to latin-1)
    Moreover, we had to configure our connection pool with two extra properties:
    useUnicode = true
    characterEncoding = UTF-8
    That was it.

  • Encoding problems in email while on Windows Mail app

    Hello.
    I have a question concerning email and encoding problems in the Windows Mail App in Windows 8.1.  I have encountered a problem with an email I received, while reading, I see strange ASCII characters in one email.  I have never encountered it in
    my web browsers nor Gmail, just the Mail App.
    I was referred to come here when I had asked a similar question there:
    http://answers.microsoft.com/en-us/windows/forum/windows8_1-ecoms/strange-foreign-ascii-characters-appearing-in/911f8a44-c302-4fa1-bcaa-3297b32d9120
    I don't know which forum to go to so I picked here.
    Is there any way that it can be resolved.  I tried to troubleshoot, nothing worked; I even synched, to no avail.
    I look forward to a response.
    JB

    Hi JB,
    The responder on answers was a bit confused. The MSDN forums are for developers to discuss writing their own apps. We cannot help with problems using Windows or its built-in apps.
    If the folks on answers cannot help then you may need to open a support incident. See
    http://support.microsoft.com , or the folks on answers may be able to direct you to the specific page for the Windows Mail app.
    --Rob

  • Encoding problem while reading binary data from MQ-series

    Dear all,
    we are running on 7.0 and we have an encoding problem while reading binary data from MQ-series. Because we are getting flat strings from queue we use module "Plain2ML" (MessageTransformBean) for wrapping xml-elements around the incoming data.
    The MQ-Series-Server is using CCSID 850, which we configured in connection parameters in communication channel (both parameters for Queuemanager CCSID and also CCSID of target).If there are special characters in the message (which HEX-values differ from codepage to codepage) we get errors in our adapter while executing, please see stack-trace for further analysis below.
    It seems to us that
    1. method ByteToCharUTF8.convert() expects UTF-8 in binary data
    2. Both CCSID parameters are not used anyway in JMS-adapter
    How can we solve this problem without changing anything on MQ-site?
    Here is the stack-trace:
    Catching com.sap.aii.af.mp.module.ModuleException: Transform: failed to execute the transformation: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException caused by: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException
        at com.sap.aii.af.modules.trans.MessageTransformBean.throwModuleException(MessageTransformBean.java:453)
        at com.sap.aii.af.modules.trans.MessageTransformBean.process(MessageTransformBean.java:387)
        at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl0_0.process(ModuleLocalLocalObjectImpl0_0.java:103)
        at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:292)
        at com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0.process(ModuleProcessorLocalLocalObjectImpl0_0.java:103)
        at com.sap.aii.adapter.jms.core.channel.filter.SendToModuleProcessorFilter.filter(SendToModuleProcessorFilter.java:84)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.ConvertBinaryToXiMessageFilter.filter(ConvertBinaryToXiMessageFilter.java:304)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.ConvertJmsMessageToBinaryFilter.filter(ConvertJmsMessageToBinaryFilter.java:112)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.InboundDuplicateCheckFilter.filter(InboundDuplicateCheckFilter.java:87)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.TxManagerFilter.filterSend(TxManagerFilter.java:123)
        at com.sap.aii.adapter.jms.core.channel.filter.TxManagerFilter.filter(TxManagerFilter.java:59)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.DynamicConfigurationFilter.filter(DynamicConfigurationFilter.java:72)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.PmiAgentFilter.filter(PmiAgentFilter.java:66)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.InboundCorrelationFilter.filter(InboundCorrelationFilter.java:60)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.JmsHeadersProfileFilter.filter(JmsHeadersProfileFilter.java:59)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageInvocationsFilter.filter(MessageInvocationsFilter.java:89)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.JarmMonitorFilter.filter(JarmMonitorFilter.java:57)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.ThreadNamingFilter.filter(ThreadNamingFilter.java:62)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.SenderChannelImpl.doReceive(SenderChannelImpl.java:263)
        at com.sap.aii.adapter.jms.core.channel.ChannelImpl.receive(ChannelImpl.java:437)
        at com.sap.aii.adapter.jms.core.connector.MessageListenerImpl.onMessage(MessageListenerImpl.java:36)
        at com.ibm.mq.jms.MQMessageConsumer$FacadeMessageListener.onMessage(MQMessageConsumer.java:399)
        at com.ibm.msg.client.jms.internal.JmsMessageConsumerImpl$JmsProviderMessageListener.onMessage(JmsMessageConsumerImpl.java:904)
        at com.ibm.msg.client.wmq.v6.jms.internal.MQMessageConsumer.receiveAsync(MQMessageConsumer.java:4249)
        at com.ibm.msg.client.wmq.v6.jms.internal.SessionAsyncHelper.run(SessionAsyncHelper.java:537)
        at java.lang.Thread.run(Thread.java:770)
    Caused by: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException
        at com.sap.aii.messaging.adapter.Conversion.service(Conversion.java:714)
        at com.sap.aii.af.modules.trans.MessageTransformBean.processTransform(MessageTransformBean.java:538)
        at com.sap.aii.af.modules.trans.MessageTransformBean.processTransform(MessageTransformBean.java:528)
        at com.sap.aii.af.modules.trans.MessageTransformBean.processTransform(MessageTransformBean.java:471)
        at com.sap.aii.af.modules.trans.MessageTransformBean.process(MessageTransformBean.java:364)
        ... 36 more
    Caused by: sun.io.MalformedInputException
        at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:270)
        at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:287)
        at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:337)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:223)
        at java.io.InputStreamReader.read(InputStreamReader.java:208)
        at java.io.BufferedReader.fill(BufferedReader.java:153)
        at java.io.BufferedReader.readLine(BufferedReader.java:316)
        at java.io.LineNumberReader.readLine(LineNumberReader.java:176)
        at com.sap.aii.messaging.adapter.Conversion.convertPlain2XML(Conversion.java:310)
        at com.sap.aii.messaging.adapter.Conversion.service(Conversion.java:709)
        ... 40 more
    Any ideas?
    Kind regards, Stefan

    Hi Stefan,
    for the first MTB now we are using only one parameter: Transform.ContentType = text/plain;charset="ISO-8859-1"
    The second MTB, which does the XML-Wrapping, is configured like this:
    Transform.Class = com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType = application/xml
    xml.conversionType = SimplePlain2XML
    xml.fieldNames = value
    xml.fieldSeparator = §%zulu§%
    xml.processFieldNames = fromConfiguration
    xml.structureTitle = payload
    Both CCSID configuration parameters from the "Source"-Tab we've set to 850.
    Now, we don't get an error anymore - sun.io.malformedInputException - , but, unfortunately, now special character conversion succeeded (we need an "ß" and we get an ISO-HEX-E1 -> á).  E1 is (different from ISO) an "ß" in 850.
    Any ideas?

  • Encoding Problems with WRT300N V2

    Hello guys,
    i have following problem:
    I have a WRT300n Router and it seems to have problems with WPA2 encoding. I have 2 different deviceses (a SMC Ethernet Bridge and a PS3) trying to connect to my Linksys wireless router. No chance in WPA2 mode but when I try in WEP-Mode, both devicec can connect to it.
    Are there known encoding problems?
    Any idea what i can do?

    It is able to use. But my router always drops the connection. WEP is no problem, but ... what about low security and Wirless N is not enabled ??

  • Czech characters encoding problem in RTFTemplate with Velocity engine

    Hi,
    I am trying to use your RTFTemplate project but I have trouble displaying Czech characters in the generated RTF document. Instead of characters like �&#269;&#345;� I get only questionmarks ????. I thought that this could be related to setting a wrong encoding in the velocity.properties file, so I set it to windows-1250 (support for Czech characters) but it didn�t help. Do you have any idea, what could be the problem? If this is not the right place to ask such question, please let me know about a better one.
    Thank you for your time,
    Ivo Jansky

    Hi Jason,
    Indeed I had contacted the provider and informed them about the encoding problem and the fact that passing the parameter http_content_charset had no effect on the sent back encoding.
    They have taken into account my request and have changed the encoding used during the request to the HOOK_URL.
    Thanks to all of your for your help.
    Regards,
    Jerome.

Maybe you are looking for

  • Cfquery sql update loop problem

    Trying something a bit tricky, need some ideas. I've got an array of objects that I pass to a cfc from flex, I'm trying to save this array to the database. Here's what I have that doesn't work. <cfquery name="setObjDetail" datasource="test">      UPD

  • How to set imagesource in reportviwer image in wpf dynamically

    Hi, I used reportviewer in my wpf application for the print report . I used Image in reportviewer. If I give static image to imagesource that shows in print report. Dynamically i give a path in parameter for image but the image is not viewed. I given

  • Failed to create the Crystal Query Engine. Please Help me resolve this issu

    i keep getting the this error : Failed to create the Crystal Query Engine. on this line of code : billing.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, fileName); i'm trying to use export it to pdf. the page works fine on m

  • Kernal power Event 41

    I have an MSI P55-ga55/Intel i5 760/4GB 1333mhz ram all at stock and running on a Corsair 550VX PSU but twice I've had this issue where the pc just reboots itself. It happened once exactly two weeks ago and again today. Both times I was running mozil

  • How to develop Standard Inbound 856 Map???.

    Hi Team, We are trying to develop a standard inbound 856 map in Biztalk 2010. But unable to fetch the data from S-Level i.e. Shipment level ,E-Level (Equipment),O-Level(Order) and so on to the output. So can you please provide a sample Standard inbou