RTF to HTML conversion - Non-English Text

Hello,
I am trying to convert a RTF file to a HTML file. Below is the code that I am using. I am not able to convert non-english text properly (German, French, Swedish etc). I like to know the proper way of doing this and if there is a more efficient way of doing this conversion in general (It is taking around 1 minute for this to complete on a 300 MHz, 320 MB iBook). Thanks.
Regards
Sarat
Code Begins
public class FormatConverter {
private DefaultStyledDocument tempRTFDoc;
private HTMLEditorKit htmlKit;
private RTFEditorKit rtfKit;
public FormatConverter () {
tempRTFDoc = new DefaultStyledDocument();
htmlKit = new HTMLEditorKit();
rtfKit = new RTFEditorKit();
public String convert(String strText) {
String strResult = "";
StringReader reader = new StringReader(strText);
try {
tempRTFDoc.remove(0,tempRTFDoc.getLength());
rtfKit.read(reader,tempRTFDoc,0);
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
htmlKit.write(byteArrayOutputStream,tempRTFDoc,0,tempRTFDoc.getLength());
strResult = byteArrayOutputStream.toString();
catch(IOException ie){}
catch(BadLocationException ble){}
return strResult;
public static void main(String args[]) {
// Read the rtf file from disk
FileInputStream in = null;
try {
in = new FileInputStream("sample.rtf");
} catch (java.io.FileNotFoundException ioe) {
System.out.println("sample.rtf file not found");
byte []input = new byte[10000];
try {
in.read(input);
} catch (java.io.IOException ioe) {
System.out.println("Error reading from sample.rtf");
// Do the conversion
FormatConverter conv = new FormatConverter();
String strHTML = conv.convert(new String(input));
// Write the html file to disk
FileWriter out = null;
try {
out = new FileWriter("output.html");
} catch (java.io.IOException ioe) {
System.out.println("Error creating file output.html");
try {
for (int i = 0; i < strHTML.length(); i++)
out.write(strHTML.charAt(i));
} catch (java.io.IOException ioe) {
System.out.println("Error writing to file output.html");
// Close the files
try {
if(in != null)
in.close();
if(out != null)
out.close();
} catch (java.io.IOException ioe) {
System.out.println("Error closing files");
System.out.println("Conversion done");
System.exit(0);
Code Ends

hi,
i'm also trying to do the same thing (convert rtf to html). i was wondering if your conversion handles tables and if so if you could post the code as i'm having trouble finding out info about rtf's.
in terms of stripting out the body tags there are a number of different ways of doing this, here's one way>
myBigHtmlString = your html doc loaded in to a string;
String[] tagsToStripOutArray = {"<html>","</html>","<body>", "</body>", "etc", "etc"};
int pos=0;
for (int x=0; tagsToStripOutArray.length; x++) {
pos = myBigHtmlString.indexOf(tagsToStripOutArray[x]);
if (pos != -1){ // if tag exists in string strip it out
myBigHtmlString = myBigHtmlString.substring(0,pos)+myBigHtmlString.substring(pos+(tagsToStripOutArray[x].length());
}// end for
i haven't compiled this so there maybe errors,
cheers,
ben

Similar Messages

  • JEditorPane problem displaying non-English text in 1.4

    hai
    I am trying to display a non English text in JEdiorPane . This is working fine with 13 but not with 1.4. (In 1.4 the non-English text is being rendered in english font).
    I am giving the HTML file and the java code that displays the html file below
    somebody pl help
    HTML file:
    <HTML>
    <HEAD>
    <STYLE>
    font.English0 {font-family:Courier,TimesNewRoman,helvetica,VERDANA,sansserif; font-style:normal;font-size:14pt;}
    font.telugu1 { font-family: Tl_tthemalatha;font-style: normal;font-size: 12pt; }
    font.English1 { font-family: Courier;font-style: normal;font-size: 22pt; }
    </STYLE>
    </HEAD>
    <BODY>
    <font class=telugu1> the non english text </font>
    </BODY>
    </HTML>
    the java code is.............
    class outpane extends JFrame
         JEditorPane jep;
         Syllable sl;
         public static void main(String[] args)
              new outpane(args[0]);
         outpane(String str)
              jep = new JEditorPane();
              jep.setEditable(false);
              jep.setContentType("text/html");
              JScrollPane js = new JScrollPane(jep);
              this.getContentPane().add(js);
              setSize(400,500);
              setVisible(true);
              setText(str);
         void setText(String str)
                   try{
                   BufferedReader br1;
                   FileInputStream fr1;
                   fr1=new FileInputStream(str);
                   br1=new BufferedReader(new InputStreamReader(fr1,"ISO8859-1"));
                        String s = new String();
                        String s1 = new String();
                        int j = 0;
                        while((s = br1.readLine()) != null)
                        s += "\n";
                        // Some mappings...
                        jep.setText(s1);
                        fr1.close();
                   }catch(Exception e){System.out.println("Exp");}
    To menction again this works fine in 1.3. In 1.4 the font is not beibg recognised
    Thanks in Anticipation

    I forgot to mention this happens only in Linux

  • Non-english text cannot be displayed correctly

    I'm trying to create a report file in pdf format, but display of non-English text isn't correct, (utf-8 encoding)
    Ð<92>ойна в Южной Ð<9e>Ñ<81>еÑ<82>ии
    BT
    /F1 1 Tf
    14 0 0 14 50.00 631.00 Tm
    0.00 0.00 0.00 rg
    (Ð<92>ойна в Южной Ð<9e>Ñ<81>еÑ<82>ии
    ) Tj
    ET

    Thanks for the reply, I created the pdf file by my own library, it works for english, french and other iso-8859-1 languages, but not for others like russian (iso-8859-5) and must the fonts be embedded?
    below is the file I created,
    %PDF-1.2
    1 0 obj
    <<
    /CreationDate (D:20120423025455)
    /Producer (N/A)
    >>
    endobj
    6 0 obj
    <<
      /Font << /F1 7 0 R  /F2 9 0 R >>
      /ProcSet [ /PDF /Text /ImageC /ImageI]
    >>
    endobj
    7 0 obj
    <<
    /Type /Font
    /Subtype /TrueType
    /Name /F1
    /BaseFont /Verdana
    /Encoding /WinAnsiEncoding
    /FirstChar 0
    /LastChar 69
    /FontDescriptor 8 0 R
    /Widths[1000 701 496 606 351 637 534 644 595 620 640 591 696 637 570 838
    594 599 887 623 600 797 591 683 621 685 614 605 524 794 591 640
    566 363 685 745 363 761 875 615 454 751 644 644 692 635 454 632
    394 623 454 818 632 600 591 606 274 595 426 632 351 972 520 545
    818 635 787 393 471 840 ]>>
    endobj
    8 0 obj
    <<
    /Type /FontDescriptor
    /FontName /Verdana
    /Flags 4
    /FontBBox [-49 -206 1445 1000]
    /MissingWidth 1000
    /StemV 96
    /StemH 96
    /ItalicAngle 0
    /CapHeight 1000
    /XHeight 700
    /Ascent 1000
    /Descent -211
    /Leading 211
    /MaxWidth 1526
    /AvgWidth 526>>
    endobj
    9 0 obj
    <<
    /Type /Font
    /Subtype /TrueType
    /Name /F2
    /BaseFont /Verdana-Bold
    /Encoding /WinAnsiEncoding
    /FirstChar 0
    /LastChar 27
    /Widths[1000 761 686 720 719 667 341 677 1195 999 850 598 664 535 720 402
    710 710 965 531 699 776 670 691 681 757 696 684 ]
    /FontDescriptor 10 0 R>>
    endobj
    10 0 obj
    <<
    /Type /FontDescriptor
    /FontName /Verdana-Bold
    /Flags 4
    /FontBBox [-73 -207 1706 1000]
    /MissingWidth 1000
    /StemV 186
    /StemH 186
    /ItalicAngle 0
    /CapHeight 1000
    /XHeight 700
    /Ascent 1000
    /Descent -167
    /Leading 167
    /MaxWidth 1750
    /AvgWidth 583>>
    endobj
    11 0 obj
    <<
    /Type /Page
    /Parent 3 0 R
    /Resources 14 0 R
    /Contents 12 0 R
    >>
    endobj
    12 0 obj
    <<
    /Length 13 0 R
    >>
    stream
    q
    611 0 0 791 0.00 0.00 cm
    /Im1 Do
    Q
    BT
    /F1 1 Tf
    23 0 0 23 150.00 600.00 Tm
    0.00 0.00 0.00 rg
    (PDF Report
    ) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 150.00 565.50 Tm
    0.54 0.65 0.62 rg
    ) Tj
    ET
    0.54 0.65 0.62 rg
    148 546 464 23 re
    f
    BT
    /F2 1 Tf
    16 0 0 16 150.00 550.50 Tm
    1.00 1.00 1.00 rg
    (asdf
    ) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 150.00 476.50 Tm
    0.54 0.65 0.62 rg
    (Generated on: Mon Apr 23 02:54:55 2012
    ) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 150.00 461.50 Tm
    0.54 0.65 0.62 rg
    (Generated by:
    ) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 150.00 446.50 Tm
    0.54 0.65 0.62 rg
    (File Name:
    ) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 150.00 431.50 Tm
    0.54 0.65 0.62 rg
    (Time: 2012-04-16 00:00
    ) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 150.00 416.50 Tm
    0.54 0.65 0.62 rg
    (Devices: 0 (See Appendix A)
    ) Tj
    ET
    endstream
    endobj
    13 0 obj
    838
    endobj
    14 0 obj
    <<
      /Font << /F1 7 0 R /F2 9 0 R >>
      /ProcSet [ /PDF /Text /ImageC /ImageI]
      /XObject << /Im1 15 0 R
    >>
    >>
    endobj
    15 0 obj
    <<
    /Subtype /Image
    /BitsPerComponent 8
    /Filter [/FlateDecode]
    /Height 1650
    /Width 1276
    /DecodeParms [<</Predictor 15 /Colors 3 /Columns 1276>>]
    /ColorSpace /DeviceRGB
    /Length 43454
    >>
    stream
    endstream
    endobj
    16 0 obj
    <<
    /Type /Page
    /Parent 3 0 R
    /Resources 19 0 R
    /Contents 17 0 R
    >>
    endobj
    17 0 obj
    <<
    /Length 18 0 R
    >>
    stream
    50.00 757.00 m
    0.20 w
    0.54 0.65 0.62 rg
    562.00 757.00 l
    f
    S
    0.00 0.00 0.00 rg
    q
    601 0 0 24 0.00 736.00 cm
    /Im2 Do
    Q
    BT
    /F1 1 Tf
    16 0 0 16 50.00 742.00 Tm
    1.00 1.00 1.00 rg
    (Table of Contents
    ) Tj
    ET
    BT
    /F1 1 Tf
    12 0 0 12 50.00 706.00 Tm
    0.00 0.00 0.00 rg
    ) Tj
    ET
    0.87 0.92 0.91 rg
    68 677 500 14 re
    f
    BT
    /F1 1 Tf
    12 0 0 12 70.00 679.00 Tm
    0.00 0.00 0.00 rg
    (Introduction) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 547.00 679.00 Tm
    (2                                       ) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 70.00 679.00 Tm
    0.00 0.00 0.00 rg
    ) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 80.00 656.50 Tm
    0.00 0.00 0.00 rg
    (²ÞÙÝÐ Ò ÎÖÝÞÙ ŸáÕâØØ) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 547.00 656.50 Tm
    (2                                       ) Tj
    ET
    BT
    /F1 1 Tf
    12 0 0 12 80.00 656.50 Tm
    0.00 0.00 0.00 rg
    ) Tj
    ET
    0.87 0.92 0.91 rg
    68 627 500 14 re
    f
    BT
    /F1 1 Tf
    12 0 0 12 70.00 629.50 Tm
    0.00 0.00 0.00 rg
    (Appendix A) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 547.00 629.50 Tm
    (3                                       ) Tj
    ET
    50.00 45.00 m
    0.20 w
    0.54 0.65 0.62 rg
    562.00 45.00 l
    f
    S
    BT
    /F1 1 Tf
    10 0 0 10 50.00 30.00 Tm
    0.54 0.65 0.62 rg
    (© 2012 N/A) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 492.00 30.00 Tm
    0.54 0.65 0.62 rg
    [(Page 1 )(of 3                         )] TJ
    ET
    endstream
    endobj
    18 0 obj
    1219
    endobj
    19 0 obj
    <<
      /Font << /F1 7 0 R /F2 9 0 R >>
      /ProcSet [ /PDF /Text /ImageC /ImageI]
      /XObject << /Im2 20 0 R
    >>
    >>
    endobj
    20 0 obj
    <<
    /Subtype /Image
    /BitsPerComponent 8
    /Filter [/FlateDecode]
    /Height 53
    /Width 1275
    /DecodeParms [<</Predictor 15 /Colors 3 /Columns 1275>>]
    /ColorSpace /DeviceRGB
    /Length 1896
    >>
    stream
    endstream
    endobj
    21 0 obj
    <<
    /Type /Page
    /Parent 3 0 R
    /Resources 24 0 R
    /Contents 22 0 R
    >>
    endobj
    22 0 obj
    <<
    /Length 23 0 R
    >>
    stream
    50.00 757.00 m
    0.20 w
    0.54 0.65 0.62 rg
    562.00 757.00 l
    f
    S
    0.00 0.00 0.00 rg
    BT
    /F2 1 Tf
    16 0 0 16 50.00 742.00 Tm
    0.00 0.00 0.00 rg
    ) Tj
    ET
    q
    601 0 0 24 0.00 712.00 cm
    /Im3 Do
    Q
    BT
    /F1 1 Tf
    16 0 0 16 50.00 718.00 Tm
    1.00 1.00 1.00 rg
    (Introduction
    ) Tj
    ET
    BT
    /F2 1 Tf
    14 0 0 14 50.00 694.00 Tm
    0.00 0.00 0.00 rg
    ) Tj
    ET
    BT
    /F1 1 Tf
    14 0 0 14 50.00 673.00 Tm
    0.00 0.00 0.00 rg
    (²ÞÙÝÐ Ò ÎÖÝÞÙ ŸáÕâØØ
    ) Tj
    ET
    BT
    /F2 1 Tf
    10 0 0 10 50.00 652.00 Tm
    0.00 0.00 0.00 rg
    ) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 80.00 637.00 Tm
    0.00 0.00 0.00 rg
    (    ÐтПт пПст целОкПЌ О пПлМПстью пПсвящеМ репПрт) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 80.00 622.00 Tm
    0.00 0.00 0.00 rg
    (    ажу АркаЎОя БабчеМкП Оз зПМы бПевых ЎействОй в) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 80.00 607.00 Tm
    0.00 0.00 0.00 rg
    (     ГрузОО. АркаЎОй Оз ВлаЎОкавказа ЎПбрался ЎП Дж) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 80.00 592.00 Tm
    0.00 0.00 0.00 rg
    (    авы, затеЌ ЎП ЊхОМвалО, участвПвал в штурЌе ЗеЌÐ) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 80.00 577.00 Tm
    0.00 0.00 0.00 rg
    (    Ÿ-НОкПзО, прПслеЎПвал с батальПМПЌ «ВПстПк» в ÐœÐ) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 80.00 562.00 Tm
    0.00 0.00 0.00 rg
    (    °Ð¿Ñ€Ð°Ð²Ð»ÐµÐœÐžÐž ГПрО О уже Ма путО туЎа верМулся Ма Ð) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 80.00 547.00 Tm
    0.00 0.00 0.00 rg
    (    ²ÐµÑ€Ñ‚Плете с раМеМыЌО.
    ) Tj
    ET
    50.00 45.00 m
    0.20 w
    0.54 0.65 0.62 rg
    562.00 45.00 l
    f
    S
    BT
    /F1 1 Tf
    10 0 0 10 50.00 30.00 Tm
    0.54 0.65 0.62 rg
    (© 2012 N/A) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 492.00 30.00 Tm
    0.54 0.65 0.62 rg
    [(Page 2 )(of 3                         )] TJ
    ET
    endstream
    endobj
    23 0 obj
    1742
    endobj
    24 0 obj
    <<
      /Font << /F1 7 0 R /F2 9 0 R >>
      /ProcSet [ /PDF /Text /ImageC /ImageI]
      /XObject << /Im3 25 0 R
    >>
    >>
    endobj
    25 0 obj
    <<
    /Subtype /Image
    /BitsPerComponent 8
    /Filter [/FlateDecode]
    /Height 53
    /Width 1275
    /DecodeParms [<</Predictor 15 /Colors 3 /Columns 1275>>]
    /ColorSpace /DeviceRGB
    /Length 1896
    >>
    stream
    endstream
    endobj
    26 0 obj
    <<
    /Type /Page
    /Parent 3 0 R
    /Resources 29 0 R
    /Contents 27 0 R
    >>
    endobj
    27 0 obj
    <<
    /Length 28 0 R
    >>
    stream
    50.00 757.00 m
    0.20 w
    0.54 0.65 0.62 rg
    562.00 757.00 l
    f
    S
    0.00 0.00 0.00 rg
    BT
    /F2 1 Tf
    16 0 0 16 50.00 742.00 Tm
    0.00 0.00 0.00 rg
    ) Tj
    ET
    q
    601 0 0 24 0.00 712.00 cm
    /Im4 Do
    Q
    BT
    /F1 1 Tf
    16 0 0 16 50.00 718.00 Tm
    1.00 1.00 1.00 rg
    (Appendix A
    ) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 50.00 694.00 Tm
    0.54 0.65 0.62 rg
    ) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 50.00 679.00 Tm
    0.54 0.65 0.62 rg
    ) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 50.00 664.00 Tm
    0.54 0.65 0.62 rg
    (Targets:
    ) Tj
    ET
    50.00 45.00 m
    0.20 w
    0.54 0.65 0.62 rg
    562.00 45.00 l
    f
    S
    BT
    /F1 1 Tf
    10 0 0 10 50.00 30.00 Tm
    0.54 0.65 0.62 rg
    (© 2012 N/A) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 492.00 30.00 Tm
    0.54 0.65 0.62 rg
    [(Page 3 )(of 3                         )] TJ
    ET
    endstream
    endobj
    28 0 obj
    718
    endobj
    29 0 obj
    <<
      /Font << /F1 7 0 R /F2 9 0 R >>
      /ProcSet [ /PDF /Text /ImageC /ImageI]
      /XObject << /Im4 30 0 R
    >>
    >>
    endobj
    30 0 obj
    <<
    /Subtype /Image
    /BitsPerComponent 8
    /Filter [/FlateDecode]
    /Height 53
    /Width 1275
    /DecodeParms [<</Predictor 15 /Colors 3 /Columns 1275>>]
    /ColorSpace /DeviceRGB
    /Length 1896
    >>
    stream
    endstream
    endobj
    50.00 45.00 m
    0.20 w
    0.54 0.65 0.62 rg
    562.00 45.00 l
    f
    S
    BT
    /F1 1 Tf
    10 0 0 10 50.00 30.00 Tm
    0.54 0.65 0.62 rg
    (© 2012 N/A) Tj
    ET
    BT
    /F1 1 Tf
    10 0 0 10 492.00 30.00 Tm
    0.54 0.65 0.62 rg
    [(Page 3 )(of 3                         )] TJ
    ET
    endstream
    endobj
    31 0 obj
    3239
    endobj
    32 0 obj
    <<
      /Font << /F1 7 0 R /F2 9 0 R >>
      /ProcSet [ /PDF /Text /ImageC /ImageI]
      /XObject << >>
    >>
    endobj
    33 0 obj
    <<
    /Type /Outlines
    /Count 2
    /First 34 0 R
    /Last 36 0 R
    >>
    endobj
    34 0 obj
    <<
    /Parent 2 0 R
    /Dest [21 0 R /XYZ 50 752 0.000]
    /Title <feff0049006e00740072006f00640075006300740069006f006e>
    /Next 36 0 R
    /First 35 0 R
    /Last 35 0 R
    /Count -1
    >>
    endobj
    35 0 obj
    <<
    /Parent 34 0 R
    /Dest [21 0 R /XYZ 50 704 0.000]
    /Title <feff0412043e0439043d0430002004320020042e0436043d043e04390020041e0441 0435044204380438>
    >>
    endobj
    36 0 obj
    <<
    /Parent 2 0 R
    /Dest [26 0 R /XYZ 50 752 0.000]
    /Title <feff0041007000700065006e00640069007800200041>
    /Prev 34 0 R
    >>
    endobj
    2 0 obj
    <<
    /Type /Catalog
    /Pages 3 0 R
    /Outlines 33 0 R
    /PageMode /UseOutlines
    >>
    endobj
    3 0 obj
    <<
    /Type /Pages
    /Count 4
    /MediaBox [ 0 0 612 792 ]
    /Kids [ 11 0 R 16 0 R 21 0 R 26 0 R ]
    >>
    endobj
    xref
    0 37
    0000000000 65535 f
    0000000009 00000 n
    0000058067 00000 n
    0000058156 00000 n
    0000000000 00000 f
    0000000000 00000 f
    0000000115 00000 n
    0000000212 00000 n
    0000000658 00000 n
    0000000911 00000 n
    0000001196 00000 n
    0000001457 00000 n
    0000001540 00000 n
    0000002432 00000 n
    0000002452 00000 n
    0000002578 00000 n
    0000046250 00000 n
    0000046333 00000 n
    0000047606 00000 n
    0000047627 00000 n
    0000047753 00000 n
    0000049864 00000 n
    0000049947 00000 n
    0000051743 00000 n
    0000051764 00000 n
    0000051890 00000 n
    0000054001 00000 n
    0000054084 00000 n
    0000054856 00000 n
    0000054876 00000 n
    0000055002 00000 n
    0000057377 00000 n
    0000057398 00000 n
    0000057512 00000 n
    0000057586 00000 n
    0000057767 00000 n
    0000057931 00000 n
    trailer
    <<
    /Size 36
    /Root 2 0 R
    /Info 1 0 R
    >>
    startxref
    58263
    %%EOF

  • Non-English Text Printing

    Hi friends,
    I am using a variable to display a text in english as a simple list, it is coming fine. Also, when the same variable is used to display any non-english text like korean or japanees, it is coming fine in the output list. But, when I do the print preview using 'LP01' or other test printer, the korean or japanees text is printed to the left (the text is shifted to the left) as result the whole column is shifted to the left.
    Can anyone tell what could be the problem & it's possible solution.
    Regards,
    Praveen

    Hi,
    Plesae use the transactions
    SNL3 & SE63
    Regards,
    IFF

  • How do I remove non English text on my calendar

    There is non English text on my iPad and don't know how to remove it

    Settings>General>International>Language/Region Format

  • Messed up non-English text

    I have worked on i18n for several time in various positions. I mess up non English text first time. The followings are the process:
    1.Copy translated text from MS word file into a text editor
    2. Run the native2ascii -encoding UTF-8 file1.properties to file2.properties to convert the unicode.
    What may cause text encoding error in the above steps?
    Thanks very much for your inputs.

    Is there a connection between the two steps? I don't see one. First you put some data into a text editor, then you ignore it and start working with a file.

  • How to store Non English text in So10

    Hi All;
    How can we store non English text i.e. Chinese in SO10 along with English text.?
    Regards
    Dev

    Translate the texts you need in german and rest keep it as it is.
    In your code pass if SET LOCALE LANGUAGE = 'EN'.
    Read the text elements
    else.
    SET LOCALE LANGUAGE = 'DE'.

  • Underlining non-English texts

    Dear support team, as a non English user of your admirably super great application , unfortunately I do sometimes fall in some little icky troubles when i want to underline my text, so i get forced to use the pencil tool each time which burns a huge part of my time and energy out. thus I want to ask you respectfuly, to please add a simple straight line tool so that we can use it and come over these annoying  obstacles easily. Thanks for your kind monitoring and attention to all the feedbacks and critisisms. Mojtavbaa.V

    Hi,
    Adobe Reader allows users to underline text irrespective of the language, provided that the PDF is not a scanned image. Are you unable to do the same? Could you provide us with a sample file where you are observing the issue at [email protected] so that we may investigate the issue?
    Thanks,
    Adobe Reader Team

  • RTF to HTML Conversion to include in JSP

    I have an RTF file which I need to display in a JSP page.
    I have converted the file successfully using RTFEditorKit and HTMLEditorKit, and now have a string which is a complete HTML file.
    Unfortunetly I need to show this String in a JSP - this has a title at the top of the page and an exit button at the bottom. I cannot simply print the String as it contains HTML headers and so the page does not display correctly.
    Is there a way to include the HTML string in the jsp successfully?
    I don't want to output the HTML to a file and then include the file or use object or iframe to include the file.
    Is there an easy way perhaps to strip the header tags from the String?
    Or create the HTML string without the header tags at all?
    Thanks

    hi,
    i'm also trying to do the same thing (convert rtf to html). i was wondering if your conversion handles tables and if so if you could post the code as i'm having trouble finding out info about rtf's.
    in terms of stripting out the body tags there are a number of different ways of doing this, here's one way>
    myBigHtmlString = your html doc loaded in to a string;
    String[] tagsToStripOutArray = {"<html>","</html>","<body>", "</body>", "etc", "etc"};
    int pos=0;
    for (int x=0; tagsToStripOutArray.length; x++) {
    pos = myBigHtmlString.indexOf(tagsToStripOutArray[x]);
    if (pos != -1){ // if tag exists in string strip it out
    myBigHtmlString = myBigHtmlString.substring(0,pos)+myBigHtmlString.substring(pos+(tagsToStripOutArray[x].length());
    }// end for
    i haven't compiled this so there maybe errors,
    cheers,
    ben

  • Non-English text in Books?

    Hi there,
    Does anyone knonw if Apple accepts orders for books featuring text in other languages than English Or for the service provided in the States that's the only choice?
    Thanks!
    Alexey

    I doubt anyone (humans) reads any of the text so as long as it is available in the allowed fonts you can type whatever you like and stick it in there.
    You can also make jpg or tiff files in photoshop, add text to them , and use the files as if they were photos, so you can do stuff like take picture, add text over top of it, flatten it, save that as a picture and add it to the book. Pictures are pictures even if they are pictures of text, if you follow.

  • Displaying non-English text without ID

    Hi,
    My situation is as follows:
    Both R/3 and BW (NW7.0) are unicode. In a report, I need to "drill across" City which comes from customer master.
    I have thought of using "Navigation Attributes" but my concern is performance.
    Now, I have created one more InfoObject in InfoCube and do a lookup (from 0CUSTOMER InfoObject) while doing transformation. The City text (which is in Chinese) is loaded into InfoCube and I can see them properly when I do a "manage InfoCube content". However, when I create a query (in BEx), the text are all gone and only display "#####" instead.
    Does anyone know why it happens?
    I am using Win XP English version. Does anyone know if the problem would still exist if I used WinXP Chinese version?
    Thanks.
    JK

    Hi JK,
                Its no where related to BI.Its all problem with Excel.So install the software which support the chinese text.
    Regards
    Karthik
    Thanks for whatever points you assign to me

  • Problem when passing non English text to another amx page

    Hi,
    I'm using JDeveloper version 11.1.2.3.0 under windows 7, to deployed ADF Mobile application into android device,
    when i used the application to pass 3 input text value to another page (or object)
    i note that if passed the 3 text without any English character (means just Arabic,Urdo,Farsi ...)
    the next page will received only the last text and the others will be null
    that means the other texts Value Change Listener dose not work, they will work just in one case if i used English
    or any other special Character (Space bar, Back Space ...) in order to invoke that action
    Any help plz
    Note:- when i deploy it to iPhone device it is work fine
    Edited by: user2397713 on Jun 5, 2013 3:11 PM

    Hi,
    do you have a test case and instructions for me to try and run. Just create a simple page-to-page use case and send it in a ZIP file (renamed to ZIP) for me to test on 11.1.2.4 and file a bug if required. If you have a support contract, you can file a service request with support. My mail addres sis in my OTN profile, just click my name link.
    Frank

  • FTP Adapter : Issue with Non English Text.

    Dear All,
    We are trying to read a file which contains Korean Language and write into a different folder in a CSV format.
    The output file contains "???" inplace of Korean text.
    We can see the invoke to FTP adapter contains Korean text as part of it's input. But the CSV file contains "???"
    <FinalTradeCardList>
    <imp1:FinalRows>
    <imp1:C1>NO</imp1:C1>
    <imp1:C2>사이트코드</imp1:C2>
    <imp1:C3>사이트명</imp1:C3>
    <imp1:C4>승인일자</imp1:C4>
    <imp1:C5>주문번호</imp1:C5>
    <imp1:C6>주문자</imp1:C6>
    <imp1:C7>주문자연락처</imp1:C7>
    <imp1:C8>카드종류</imp1:C8>
    <imp1:C9>승인번호</imp1:C9>
    <imp1:C10>거래상태</imp1:C10>
    <imp1:C11>거래상태일시</imp1:C11>
    <imp1:C12>할부</imp1:C12>
    <imp1:C13>거래금액</imp1:C13>
    <imp1:C14>비과세공급가액</imp1:C14>
    <imp1:C15>과세공급가액</imp1:C15>
    </imp1:FinalRows>
    </FinalTradeCardList>
    What needs to be done in BPEL to get Korean Language text in CSV file.
    Thanks,
    Sid.

    Thanks for your reply.
    I used the character set as you suggested.But it is not getting converted correctly.
    Actual Value : (유)라이프테크놀로지스코리아
    Converted Value : ( $)C @/ ) 6s@LGAEWE)3n7NAv=:DZ8.>F
    I tried all others that are mentioned in the document. Still i am seeing different values. I am not getting the actual value.
    But in BPEL i see correct value getting passed to FTP Adapter.
    The character set is in XSD. Please find it below..
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
                xmlns:tns="http://TargetNamespace.com/DeleteMe"
                targetNamespace="http://TargetNamespace.com/DeleteMe"
                elementFormDefault="qualified"
                attributeFormDefault="unqualified"
                nxsd:version="NXSD"
                nxsd:stream="chars"
                nxsd:encoding="ISO-2022-KR">
      <xsd:element name="Root-Element">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="Row" minOccurs="1" maxOccurs="unbounded">
              <xsd:complexType>
                <xsd:sequence>
                  <xsd:element name="C1" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
                  <xsd:element name="C2" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;" />
                </xsd:sequence>
              </xsd:complexType>
            </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>
    Please review the above and help me in resolving this issue.
    Thanks,
    Sid.

  • Non-english text-to-speech (Cp 6.1)

    Hi,
    I was wondering if it is possible for me to add a dutch voice to the text-to-speech in Captivate 6.1. I've seen the possibilty of adding certain NeoSpeech voices, but I couldn't find a dutch one. On my PC, I've got quite a few number of licensed TTS voices because of the numerous TTS software I own (such as Kurzweil 3000 etc.) and they've got numorous dutch voices available that are used by the TTS software.
    Thanks in advance!
    ADIBib

    Hi
    You can integrate your TTS voices with Captivate.
    To integrate the voices, see some tips from Kimberly CBT on this thread.
    http://forums.adobe.com/message/5734631#5734631
    Sreekanth

  • Display Non-English Text in JEditorPane in Linux

    I want to display chinese in JEditorPane under Linux OS.
    However, i just found that they all display as a square box.
    I have tried to use both big5, and unicode(utf8), but it doesn't seem work.
    Do anyone know how to solve it ? Any method that can make them display ??
    Thank You!!

    Hi,
    just a guess, i think u can use setContentType to set the MIME type
    Ashish

Maybe you are looking for

  • Windows 7 PC can't see iMac

    Sharing, SMB, all that stuff is enabled on my iMac.  The Windows 7 PC can see my iMac in "Network Neighborhood", but when I double-click on my iMac it fails to login -- doesn't like username or password, presumably. The iMac can see the Windows 7 PC

  • Command line feature in File Adapter

    Hi  Experts,       Can any one please explain how to use command line feature present in FTP.       Thanks in advance for you help!       Regards,       Ravi Kiran L

  • I need to hook my MacBook up to my TV.

    I have a MacBook 6,1 that I want to hook up to my TV.  I will be running it through the RCA input on the TV.  I don't know what kind of cables I need in order to make this work and I need to have these by Friday night!  Please help!

  • Row level security in Cross References Section

    What capabilities does GSM give , beside SLE, for locking down certain rows in the cross reference section? for example, we want to lock out the row that has system name and system ID = "SAP" Thanks, David

  • East Asian Charact

    Hello, I've searched on how to properly display east asian characters, but i can't seem to find answers. i rip jpop CDs using grace note database with media source player, but whenever i import track and artist names, it displays garbage characters.