How to read a file which content hindi characters.....

I m reading a text file which content hindi characters.... but m nt getting the right result. It shows garbage instead of hindi characters.
plz somebody help me....:(

You posted this in the XML forum. Is this an XML file you are asking about?
And we need definitions for some of the terms you used in your original post. You said "it shows garbage". We need to know:
1. What is the "it" there?
2. How does it "show" something?
3. What does the "garbage" look like.
In future you will find you get better answers if you write better questions.

Similar Messages

  • How to read a file which has header and without header

    Hi,
    I have a file to file scenario wherein there are txt files in the source system, some of which has header and some without header.
    How does the sender adapter dynamically identify a file with header and without header.
    I knew that File content Conversion in the sender adapter with "Recordsets per message = 1" can read the header.  But how to handle dynamically.
    Thanks in advance for suggestions and advice.
    Regards.
    Praveen

    Hi,
    Let me give a more clear picture:-
    One of my file which has header and the corresponding values is listed hereunder:
    PERNR;KID;PNALT;NACHN;NAME2;VORNA;TITEL;TITL2 and so on.....
    ;1200;1200;Angus;; and so on.........
    Other file which has no header but only values in it:-
    1200;1200;;Werner;Angus and so on.......
    The structure remains same for all the files.  The only difference is that some of the file has header in it and some without header.  The Message Type is mentioned hereunder:-
    DT_LegacyEmployee (Category - Complex Type)
         Employees (Category - Element, Occurence - 1)
              Employee (Categroy - Element, Type - DT_LegacyEmployee_Row, Occurence - 0...unbounded)
                   PERNR
                   KID
                   PNALT
                   NACHN
                   NAME2 and so on......     
    I read the file in record row.  The file conversion parameters in the file sender adapter are mentioned hereunder:-
    Document Name - MT_LegacyEmployee
    Document Namespace - http://abc.com/xi
    Recordset Name - Employees
    Rescordset Structure - Employee,*
    Recordsets per Message - 1
    Key Field Type - String (Case Sensitive)
    Employee.fieldSeparator - ;
    Employee.endSeparator - 'nl'
    Employee.fieldNames - PERNR,KID,PNALT,NACHN,NAME2,VORNA,TITEL,TITL2 and so on........
    How do we dynamically identify whether the file has header or not.  Even if the file has header or without header, the file needs to be picked and transferred to the target system.  Kindly clarify.
    Regards.
    Praveen

  • How to read a file which as restricted access

    Hi all.
    Lets say I have two users User1 and User2
    I have created a servlet which needs to read a file.
    Lets say the owner of the file is User1.
    So User2 cannot access this file.
    This is on windows platform.
    The problem is that the Servlet cannot know owner of its user.
    Servlet run's as anonymous, so the user as to enter his userName and Password.
    This is fine with me.
    But after this how do I use this to read that file.
    I have no clue on how to use this information to read this file.
    Examples if any will be very helpful.
    Thanks for your help in advance.

    Well, you'd hardly write a servlet that can access any file on your server, not exactly good security. Rather it needs to be confined to specific files or, at least, specific directories. The server can't change it's user identity, so it needs access to all files, but it's easy enough for the serlvet to have some mapping which tells it which files may be server to which users.

  • How to read PDF files which are made using LiveCycle in VS

    Hello,
    I make some pdf templates using LiveCycle.
    I want to get the value correspond to the field name of PDF files.
    For example, I create the text field which is named "Employee ID".
    and then i wanna get the value using "Employee ID" in VS, especially, VB.NET 2005.
    Is this possible?
    Help me

    Haev a look at buying PDF4NET. This will do everything you require.

  • How to read xml file as shown below.

    Hello,
    I am using flash builder 4 and currently working on implementing AIR application.
    I need to read xml file data.
    Normal xml files are easy to read and i am much more aware of it.
    But can any one have idea how to read XML file which is given below.
    <node>
    <key>ID</key>
    <integer>1</integer>
    <key>Name</key>
    <string>Dhwani</string>
    <key>Postno</key>
    <integer>20</integer>
    <key>deskname</key>
    <string>flex</string>
    <key>empid</key>
    <integer>25</integer>
    <key>projectname</key>
    <string>abc</string>
    </node>
    Here i have xml file in form of key value pair. <key> node shows name of the key and after that <integer> or <string> node are the value for that specific key.
    if i select node.key then it shows me all the keys. and from that i cant make out what is the value for key ID.
    Is there any way to take first node and then second. i mean first i ll take value of key and store it into some arraycollection. and then value will be stored.
    Any help is appreciated.. Looking for positive reply.
    Thanks
    Dhwani

    There are different methods to access XML data which have pro's and cons. Let us know more about what you want to do and we can help you.

  • How to read trace file content

    Hi,
    DB :11.2
    How to read trace file content.It's only for ORACLE SUPPORT?
    calling         
    call
    entry           
    argument values in hex
    location        
    type
    point           
    (? means dubious value)
    ksedst()+31     
    call
    ksedst1()       
    000000000 ? 000000001 ?
    7FFF19B98CA0 ? 7FFF19B98D00 ?
    7FFF19B98C40 ? 000000000 ?
    ksedmp()+610    
    call
    ksedst()        
    000000000 ? 000000001 ?
    7FFF19B98CA0 ? 7FFF19B98D00 ?
    7FFF19B98C40 ? 000000000 ?
    ksfdmp()+21     
    call
    ksedmp()        
    000000003 ? 000000001 ?
    7FFF19B98CA0 ? 7FFF19B98D00 ?
    7FFF19B98C40 ? 000000000 ?
    kgerinv()+161   
    call
    ksfdmp()        
    000000003 ? 000000001 ?
    7FFF19B98CA0 ? 7FFF19B98D00 ?
    7FFF19B98C40 ? 000000000 ?
    kgeasnmierr()+163
    call
    kgerinv()       
    0069107E0 ? 011F80370 ?
    7FFF19B98D00 ? 7FFF19B98C40 ?
    000000000 ? 000000000 ?
    kssmov()+502    
    call
    kgeasnmierr()   
    0069107E0 ? 011F80370 ?
    7FFF19B98D00 ? 7FFF19B98C40 ?
    000000029 ? 0D3F1C600 ?
    kfncInitSlavePool()  call
    kssmov()        
    0D3F1C5D0 ? 000000000 ?
    +203                                          
    7FFF19B98D00 ? 7FFF19B98C40 ?
    000000029 ? 0D3F1C600 ?
    kfncWorkMsgAlloc()+  call
    kfncInitSlavePool()  0D3F1C5D0 ? 000000000 ?
    83                                            
    7FFF19B98D00 ? 7FFF19B98C40 ?
    000000029 ? 0D3F1C600 ?
    kfncFileUnidentify(  call
    kfncWorkMsgAlloc()   0D3F1C5D0 ? 7FFF19B99AD0 ?
    )+635                                         
    7FFF19B98D00 ? 7FFF19B98C40 ?
    000000029 ? 0D3F1C600 ?
    kffmRequestFree()+1  call
    kfncFileUnidentify(  7FFF19B99BC8 ? 7FFF19B99BC0 ?
    Br,
    Raj

    One needs to know the meaning of the kernel functions and their working within the oracle database. I guess, oracle support can do the analysis more easily as they have access to the software code  as well necessary tools to interpret these internal routines.
    Aman....

  • How to read pmd files on mac?

    How to read pmd files on mac?

    There is no native support to open PageMaker documents on the Mac. I would check to see what PageMaker document versions that InDesign CS6 can open, ether on Mac or PC.
    Adobe still has the trial of PageMaker 7 for Windows (Adobe link) and PM7 PDF, which you could install in Boot Camp, or Mac Virtual Machine in Windows 7.
    I just checked the latest release of LibreOffice, and there is no support for PageMaker anything.
    zamzar dot com does not support .pmd content.

  • I want to read a file which is in a zip and this zip file is at ftp site

    i am facing this problem and try to find the solution from last month please help me
    i want to read a file which in ziped and this zip file is at ftp site. and i want to read this file without downloading this zip file to local machine. i have to read it from ftp location only

    You can open an URLConnection to a file on an FTP server (search this forum to find out how). You can get the InputStream from the URLConnection and feed it to ZipInputStream. That should do the job.

  • How to upload a file which may contain text as well as image to the server using windows phone 8 application ?

    How to upload a file which may contain text as well as image  to the server using windows phone 8 application ?

    You're going to need to give way more detail about the situation before we can help.

  • How to read a file containing bitmap message in binary format

    Dear all,
    Can anybody tell me how to read bitmap message which stored data in binary format? The messages are stores like this :
    A file contain some messages along with these bitmaps in square zeroes.
    I want to again convert it into ASCII.

    Double post: http://forum.java.sun.com/thread.jspa?threadID=587497

  • How to open my file which is in my c directory

    hi
    how to open my file which is in my c directory
    for example i have one folder called "man" which is in my c directory,
    is there possible to open that folder using sql query,if means please tell me

    hi
    how to open my file which is in my c directory
    for example i have one folder called "man" which is
    s in my c directory,
    is there possible to open that folder using sql
    l query,if means please tell meWell, you can use the UTL_FILE package as described above, within PL/SQL, but if you want to access a file though an SQL query (as you stated) then you'd have to look into creating an external datasource and using SQL syntax such as...
    select whatever
    from table@ext_datasource_name
    What exactly are you trying to achieve?

  • How to upload a file which has more than 999 line item  through BDC ?

    Hello Techards
    Hi to all
    Can any body tell me how to upload a file which has more than 999 line item  through BDC for traction F-02 ?
    Thanks in advance.
    Shovan

    Hello Shovan,
    You split it up to post two accounting documents with the help of a "suspense" a/c.
    Say, you have to post the following line items below:
    line 1 - dr. - GL a/c X - $1000
    line 2 - cr. - GL a/c Y - $1
    line 3 - cr. - GL a/c Y - $1
    line 1001 - cr. - GL a/c Y - $1
    You cannot post the above as a single doc in SAP (because of technical reasons), so you need to break it up into 2 documents as below:
    Doc1
    line 1 - dr - GL a/c X - $1000
    line 2 - cr - GL a/c Y - $1
    line 3 - cr - GL a/c Y - $1
    line 998 - cr - GL a/c Y - $1
    line 999 - cr - SUSPENSE a/c - $3
    Doc2
    line 1 - dr - SUSPENSE a/c - $3
    line 2 - cr - GL a/c Y - $3
    Note that there is no incorrect impact on accounting as first we credit suspense a/c by $3 and next we debit the same suspense a/c by $3 as a result the effect is nil. Similarly, we credit $997 to GL a/c Y (which is less by $3) in the first doc which is compensated by the second doc by crediting the shortfall of $3.
    Hope this helps,
    Cheers,
    Sougata.

  • How to read WSDL File

    Hi all,
    I am new in web services...just started yesterday.. my client is provinding web services...I just need to send some data to them and retrieve data back...they are basically verifying addresses..if Address is not corrent then they will send the correct one back..I have no clue which method should I call and how to send data to them..below is my work that I have done so far...please help me...
    ///Below is the Client API that I have made...there is a bean file which I have made for Input Data...
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    public class TestClient {
        public static void main(String [] args) {
           try {
             String endpoint = "http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress";
             Service  service = new Service();
             Call     call    = (Call) service.createCall();
            call.setTargetEndpointAddress( new java.net.URL(endpoint) );
            call.setOperationName(new QName("http://m3group101.mnao.net/", "ValidateAddress"));
         call.setUsername("free");
         call.setPassword("account");       
         AddressIn addressIn  = new AddressIn();
            addressIn.Address1 = "6767 Friars Rd";
            addressIn.Address2 = "";
            addressIn.Address3 = "";
            addressIn.Address4 = "";
            addressIn.City = "SAN DIEGO";
            addressIn.StateProv = "CA";
            addressIn.PostalCode = "";
            addressIn.Country = "US";
            String ret = (String) call.invoke(new Object[] {"",""});      ////Here I donno what should I pass
            System.out.println("Sent DATA, got '" + ret + "'");
          } catch (Exception e) {
            System.err.println("Got Error While retrieving data "+e.toString());
    ///My Bean File Looks like this....
    import java.io.*;
    import java.util.*;
    import java.util.ResourceBundle;
    public class AddressIn {
        public String KeyValue;
        public String Address1;
        public String Address2;
        public String Address3;
        public String Address4;
        public String City;
        public String StateProv;
        public String PostalCode;
        public String Country;
        public AddressIn()
             KeyValue   = "";
             Address1   = "";
             Address2   = "";
             Address3   = "";
             Address4   = "";
             City       = "";
             StateProv  = "";
             PostalCode = "";
             Country    = "";
        } // END constructor
    } // END class AddressIn
    import java.io.*;
    import java.util.*;
    import java.util.ResourceBundle;
    public class AddressOut {
        public String KeyValue;
        public String Address1;
        public String Address2;
        public String Address3;
        public String Address4;
        public String City;
        public String StateProv;
        public String PostalCodeBase;
        public String PostalCodeAddOn;
        public String Country;
        public String Status;
        public String StatusCode;
        public String StatusDescription;
        public String Confidence;
        public String RecordType;
        public AddressOut()
             KeyValue   = "";
             Address1   = "";
             Address2   = "";
             Address3   = "";
             Address4   = "";
             City       = "";
             StateProv  = "";
             PostalCodeBase  = "";
             PostalCodeAddOn = "";
             Country    = "";
             Status     = "";
             StatusCode = "";
             StatusDescription = "";
             Confidence = "";
             RecordType = "";
        } // END constructor
    } // END class AddressInPlease see the WSDL File...
    <?xml version="1.0" encoding="UTF-8" ?>
    - <wsdl:definitions targetNamespace="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" xmlns:intf="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://com.g1.dcg/services" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsd00="http://www.w3.org/2000/10/XMLSchema" xmlns:xsd99="http://www.w3.org/1999/XMLSchema">
    - <wsdl:types>
    - <schema targetNamespace="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" xmlns="http://www.w3.org/2001/XMLSchema">
      <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
    - <complexType name="ArrayOf_xsd_anyType">
    - <complexContent>
    - <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:anyType[]" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
      </restriction>
      </complexContent>
      </complexType>
    - <complexType name="ArrayOf_tns1_ServiceOption">
    - <complexContent>
    - <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:ServiceOption[]" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
      </restriction>
      </complexContent>
      </complexType>
    - <complexType name="ArrayOf_tns1_DataRow">
    - <complexContent>
    - <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:DataRow[]" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
      </restriction>
      </complexContent>
      </complexType>
    - <complexType name="ArrayOf_xsd_string">
    - <complexContent>
    - <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
      </restriction>
      </complexContent>
      </complexType>
      </schema>
    - <schema targetNamespace="http://com.g1.dcg/services" xmlns="http://www.w3.org/2001/XMLSchema">
      <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
    - <complexType name="ServiceOption">
    - <sequence>
      <element name="key" nillable="true" type="xsd:string" />
      <element name="value" nillable="true" type="xsd:string" />
      </sequence>
      </complexType>
    - <complexType name="DataTableBean">
    - <sequence>
      <element name="columnNames" nillable="false" type="impl:ArrayOf_xsd_string" />
      <element name="dataRows" nillable="true" type="impl:ArrayOf_tns1_DataRow" />
      </sequence>
      </complexType>
    - <complexType name="DataRow">
    - <sequence>
      <element name="values" nillable="true" type="impl:ArrayOf_xsd_string" />
      </sequence>
      </complexType>
      </schema>
      </wsdl:types>
    - <wsdl:message name="processResponse">
      <wsdl:part name="arg0" type="tns1:DataTableBean" />
      </wsdl:message>
    - <wsdl:message name="processRequest">
      <wsdl:part name="arg0" type="impl:ArrayOf_tns1_ServiceOption" />
      <wsdl:part name="arg1" type="tns1:DataTableBean" />
      </wsdl:message>
    - <wsdl:portType name="G1Service">
    - <wsdl:operation name="process" parameterOrder="arg0 arg1">
      <wsdl:input message="impl:processRequest" name="processRequest" />
      <wsdl:output message="impl:processResponse" name="processResponse" />
      </wsdl:operation>
      </wsdl:portType>
    - <wsdl:binding name="ValidateAddressSoapBinding" type="impl:G1Service">
      <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
    - <wsdl:operation name="process">
      <wsdlsoap:operation soapAction="ValidateAddress" />
    - <wsdl:input name="processRequest">
      <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" use="encoded" />
      </wsdl:input>
    - <wsdl:output name="processResponse">
      <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" use="encoded" />
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
    - <wsdl:service name="ValidateAddress">
    - <wsdl:port binding="impl:ValidateAddressSoapBinding" name="ValidateAddress">
      <wsdlsoap:address location="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" />
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>I am receiving Exception " No Such Operation "
    I am sorry but I don'n know how to read WSDL file...
    thanks
    Vish...
    Message was edited by:
    vishu007

    Start going through the tutorials that come with Axis (you didn't state which version of Axis you're using btw, and there are major differences between them).
    Anyway, the wsdl you list doesn't have an operation called "ValidateAddress". It has only one operation, called "process".
    The call takes 2 arguments, as defined in the input message, and returns one value as defined in the output message.
    Had you used Axis to generate your classes for you that would all have become quite obvious.

  • How to read a file just from middle?

    I want to read a file which has 200,000 lines. And I want to read it from 100,000, but I don't want to read it from begining. So I use LineNumberReader class, but it failed. The code:
    LineNumberReader lnr=new LineNumberReader(new InputStreamReader(src_lob.getBinaryStream()));
             lnr.setLineNumber(5);
             String line="";
             while((line=lnr.readLine())!=null)
                     System.out.println(line);
             } How to change the code???

    Random Access File will be good option I think
    filelength=RandomAccessFile.length();
    raf.seek(filelength/2);
    then read file characters

  • How to read a file inside a jar

    Hi All,
    I have a jar file which consists of several XML. I need to read one of the xml.
    If the XML are in a folder it is easy to read them by directly referencing them (e.g.:- "D/Test/Sample.xml";). But if these xmls are put in a jar file i am facing trouble in reading them.
    Can anyone please suggest how to read such files. Also if the classes and jar are not in the same directory.
    Any help in this regard will be highly appreciated.
    Thanks,
    Piyush

    nikhil_vinay wrote:
    yes i have already used "Class.getResourceAsStream ()". I guess it comes useful only when the class files and jar are in the same directory.No, wrong. The JVM has little or no concept of 'directories'
    and instead relies on the classpath of the application to find
    resources.
    Due to some problem my jar files and my codes are in different directory. So add them to the apps' claspath and it will all be sweet. The original
    responders advice will work just fine if the resource is on the classpath.
    (Of course, that reply was assuming the resource was in a jar file.
    If not, you will probably be needing to offer the user a JFileChooser
    to access the file.)
    Edited by: AndrewThompson64 on Mar 11, 2008 1:22 PM

Maybe you are looking for

  • Cisco UC Integration for Microsoft Lync Release 8.6.2 Question

    Hello Team, Could you please advise if CUCI-Lync integration 8.6.2 supports CUCM 9.1(2) and CUC 9.1.(2)? I checked the release notes for this version, and it does support CUCM 9.0, but CUC 9.X is not referenced on the document. As a side note, the re

  • Load balancing with multiple clusters (HTTPProxyServlet)

              Hello!           I'm newbie in Weblogic. I would like to have clustering and load balancing in           development environment. I've created 2 clusters, with one managed server each.           I've created a web application for deploying

  • Can a wifi hotspot permanently hijack an url?

    Earlier today I was at the Tour Eiffel. While waiting in the massive line, I connected to the open wifi network run by the Socité d'Exploitaion de la Tour Eiffel, ie the official authority running the Tour Eiffel site. I tried to access internet, but

  • Some Vista users are stuck in Basic Interface

    I have a couple of Vista users that are stuck in the basic interface. Deleting the cookies and re-starting IE8 does not fix the problem they are brought directly to the basic login screen "the screen you get to if you have basic interface selected an

  • New T530: same boot time after cloning HDD to SSD - what to do next to optimize performanc​e?

    Hi, This is my very first post here so bear with me if I have not observed any guidelines. After I got a new T530 from Lenovo (i5-3230M, 8G RAM 1DIMM, 500GB 7200rpm HDD, 1920x1080, 16GB Micro SSD SATA3, NVIDIA Optimus with 1GB), I swapped the DVD bur