I think the lowest common denominators you need is a special character which
will separate
the field for instance in the sequence below it is comma separated file and
the position of the fields must be consistent.

     while(1=1)
    {
            line = file.readLine();
              String fieldValue
                StringTokenizer st = new StringTokenizer(line, ",");
                fieldValue = st.nextToken();
  }


Regards,
Zahid

> -----Original Message-----
> From: Sunil Chinjwani [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, November 23, 2000 8:19 AM
> To:   [EMAIL PROTECTED]
> Subject:      Encoding Features
>
> hello friends,
>     I have a file which I use for extracting information using Servlets.
> The contents of the file can be in any encoding format( say BIG5, Ascii,
> or japanese). I need a way to find out the encoding format of this file
> and retrieve the values from it and save it in the database in Unicode
> format.(i.e I want to store the characters or strings as Unicode strings
> in Database)..... Can I do this without knowing the encoding of the file
> that I use?......ie. when I read the file using  a reader which encoding
> should I specify ? ( I do not know the encoding of the file).....
> Is there some way we can find out the encoding on which a file was
> written ?
> Any help will be appreciated,
> regards,
> Sunil.
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to