Results 1 to 6 of 6

Thread: [SOLVED] Utf-16

  1. #1
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Question [SOLVED] Utf-16

    I give up, I was trying to write RTF from a servlet - client insists on using some formats generally accepted in office settings,.... I want to tightly control all aspects of the activity. I gave up when I hit:
    Java Code:
    public abstract class Charsetextends Object
    I'm giving up for the evening due to obscure and sparse data. Last item of any use was Encodings in Java by a doctorate.

    I need to get something done tomorrow, any help is welcome.....I read the proprietary description ~ it is clearly and inexorably on a Death March.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  2. #2
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    what's the problem? RTF is fullly specified by Microsoft. I'm pretty sure it does not use anything more complex than UTF-8, but I haven't dug into the internals of RTF this century.

    Since open source packages can read and write it, there has to be code out there to do the hard work.

  3. #3
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Post search assistance

    Quote Originally Posted by fishtoprecords View Post
    what's the problem? RTF is fullly specified by Microsoft. I'm pretty sure it does not use anything more complex than UTF-8, but I haven't dug into the internals of RTF this century.
    I think trying to read the spec turned my head around, I realized later that Java String Class understands all the ( stuff I was trying to do ) and all I need to is write(String.getBytes()); at any point and that should retire the UTF-8 issue completely. Client only uses tools at least a Century Old, so I thought I might start off with Old Bookman typeface / typefont. I took a short training course in client's work that lasted about ten hours, but Cuttham, Burnham and Runn insists on something they are familiar with. You know, keep it all in the family sort of client.

    Quote Originally Posted by fishtoprecords View Post
    Since open source packages can read and write it, there has to be code out there to do the hard work.
    I need assistance in finding those packages, I spent good part of an hour looking for useful information. Search was of limited utility, I will glady search on five or six engines if I can get some search terminology that will getter better scatter/gather rates.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  4. #4
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    So you are having problems with precision and recall in your searches, duh.

    From wikipedia:

    "The free and open-source word processors AbiWord, OpenOffice.org, and KWord can view and edit RTF files."

  5. #5
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Post write to browser from servlet

    Quote Originally Posted by fishtoprecords View Post
    ...AbiWord,...
    Java Code:
    // AbiWord
    const UT_UCSChar * m_InitialBuffer;
    doesn't look like Java to me, anyway const keyword binds to the left.
    Quote Originally Posted by fishtoprecords View Post
    OpenOffice.org
    Upon finding: Standard ECMA-376 Office Open XML File Formats:
    Java Code:
    Dll: C:\PROGRA~1\WinZip\wz32.dll - 09/26/97 07:30
    Operation ceased at first binary zero.
    Quote Originally Posted by fishtoprecords View Post
    ...KWord,...
    Java Code:
    http://kdesvn-build.kde.org/other/svn-checkout-tarballs.php
    Where's Tarball Class in 1.5 api docs?

    Anyway, back to the point. So far I have had better luck digging for rtf info. I thought an hour ago of writing xml to the browser since all the browsers seem to understand it, but it would probaly parse it and
    Java Code:
    DocumentBuilderFactory.newDocumentBuilder()
    is a parser, not a generator. I think for the moment I am going to re-read Marty Hall's advice on writing csv to the browser, I have a clear memory of that exporting to what CB&R uses for their document system.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  6. #6
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    For excel, writing CSV is the trivial solution.

    Tons easier than RTF, which is really intended for Word documents. It has all this formatting, font, style, and other stuff that spreadsheets don't need.

    CSV is near trivial.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •