Arabic display using JPDK

I need to expose a JSP page displayinga rabic characters using JPDK. For that I need to set the charset=Windows-1256 in portlet..
How can I do this???

what is wrong
new String(arObj,"UTF-8")).toString().Are you sure it's UTF-8? And btw, why are you calling String.toString()?

Similar Messages

  • Help:displaying Arabic characters using XSL

    How do I display static Arabic characters using XSL in a HTML page, from within a JSP?
    I need to display a HTML page wherein static Arabic characters have to be shown. I use the following XSL document with static Arabic characters inside:
    <?xml version = '1.0'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html"/>
    <xsl:template match="/">
    <HTML>
    <HEAD/>
    <xsl:apply-templates/>
    </HTML>
    </xsl:template>
    <!-- document xsl:template -->
    <xsl:template match="booklist">
    <BODY BGCOLOR="#CCFFFF">
    <H1>^GFcI cSGZOI
    </H1>
    <P> This will illustrate the transformation of XML file containing list of books to a HTML table form
    </P>
    <xsl:apply-templates/>
    </BODY>
    </xsl:template>
    <xsl:template match="booklist/book">
    <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="booklist/book/title">
    <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="booklist/book/author">
    <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="booklist/book/publisher"/>
    <xsl:template match="booklist/book/price"> Price: $
    <xsl:apply-templates/>
    </xsl:template>
    </xsl:stylesheet>
    When I try to read the XSL document using an IO stream, like this,
    InputStream is = getClass().getResourceAsStream("myXSLDocument.xsl");
    XSLStylesheet stylesheet = new XSLStylesheet(inputStream, null);
    from within a JSP, I get a null pointer exception as shown below:
    java.lang.NullPointerException:
    at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:175)
    at mip.portlets._cardvalidaterportlet._cardentry._jspService(_cardentry.java:143)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
    at oracle.jsp.JspServlet.internalService(JspServlet.java, Compiled Code)
    at oracle.jsp.JspServlet.service(JspServlet.java)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at oracle.portal.provider.v1.http.JspRenderer.renderBody(JspRenderer.java:133)
    at oracle.portal.provider.v1.RenderManager.render(RenderManager.java:164)
    at oracle.portal.provider.v1.http.ServletProviderResponse.showPortlet(ServletProviderResponse.java:510)
    at oracle.portal.provider.v1.http.HttpProvider.dispatchProviderAction(HttpProvider.java:647)
    at oracle.portal.provider.v1.http.HttpProvider.service(HttpProvider.java:383)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java, Compiled Code)
    at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code)
    at java.lang.Thread.run(Thread.java:479)
    I have no problems parsing the same XSL containing static Arabic text using Transviewer beans' XSLTransformPanelSample class. This means that my XSL has no errors in it.
    null

    You need to use the correct and the same character encoding (charset) thorough the complete process.
    Whenever you get question marks, then it means that the charset used does not recognize the bytes (which on its turn are apparently encoded by a different charset).
    This is an important read, read it from top to bottom, preferably twice: [http://www.joelonsoftware.com/articles/Unicode.html].

  • Creating a Arabic PDF using SQR program

    Arabic display
    Hi All
    I am trying to create a PDF report via Peoplesoft SQR using SQRW command. I get the expected result if I choose LIS or HTML as my output.
    But in case of PDF, I am missing the Arabic words in my report. 
    Version of Adobe - 8.
    OS - Window XP, Peoplesoft SQR 8.4
    Thanking you in advance.

    Contact the support of Peoplesoft SQR. It isn't a Adobe product.

  • Arabic pdf using FOP

    hello all ..
    i m able to generate the pdf in arabic format using FOP 0.20.4 but the problem is that the data that comes from database (arabic data in oracle database) is not displayed properly and the direction of the data is not correct. Please help me if someone has tried to generate the arabic pdf.
    thanks in advance
    gurpreet singh

    No i m not using iText. I m using FOP. But if u know
    the solution for iText then please help me as i tried
    to use that too but arabic data is not displayed.
    Gurpreet SinghKaaka, yeh dekho. http://itextdocs.lowagie.com/tutorial/#part3
    There are a number of examples using Unicode and fonts- they might be of some help.
    I am not too familiar with iText, so you may want to ask specific questions over there.
    Here is a link for FOP:
    http://www.javaranch.com/journal/200409/CreatingMultipleLanguagePDFusingApacheFOP.html

  • Can I connect multiple displays using a mac mini

    Can I connect 2 displays using the mac mini? If so, are there any accessories that I need? Are there certain monitors or connections that I should use?

    Hello,
    Assuming this is a 2012 Mini...
    2nd Display Support:
    Dual/Mirroring*
    2nd Max. Resolution:
    2560x1600*
    Details:
    *This model simultaneously supports 1920x1200 on an HDMI or a DVI display (using the included HDMI-to-DVI adapter) and 2560x1600 on a Thunderbolt or Mini DisplayPort display or even a VGA display (with an optional Mini DisplayPort-to-VGA adapter, which is compatible with the Thunderbolt port).
    http://www.everymac.com/systems/apple/mac_mini/specs/mac-mini-core-i7-2.6-late-2 012-specs.html
    If you need more...
    http://eshop.macsales.com/item/NewerTech/VIDU3HDMIDV/
    http://eshop.macsales.com/item/NewerTech/VIDU2DVIA/

  • The display used to flicker, now it's completely white! PLease HELP!

    So, my display used to flicker with horizontal lines all over it, and slightly adjusting the angle of opening would fix this, but about a week ago it lightened a few times, then got stuck being really light with the desktop being barely visible, though better from way down angle (if you open it all the way out) and looking like a negative from the way up angle. I restarted it, and the problem persisted. I shut it down for a day, and, upon startup, the screen is now completely white with nothing visible on it. I had connected the PB to my tv using the s-video out jack on the back and I can see the desktop clearly on it, but it's extremely difficult to read any text, largely due to my tv being big and not hi-def. So far I had tried fixing or diagnosing it by switching resolutions and calibration in the "display" area of System prefs and also in universal access "seeing" tab, I've reset the PMU and still nothing. Here's what's going on: if I start visualizer on the iTunes, both the TV and the stock display flicker to black, then the TV does the visualizer thingy and the display goes back to white. The apple logo backlight is on no problem at all times as well. The laptop was never dropped, handled roughly or subjected to extreme temps. The flickering problem had first appeared when I had relized that I only had about a minute for the battery to go completely empty (my 'puter is almost 3 years old). The recall for the displays covers laptops manufactured about 2 months after mine, otherwise all the symtoms listed in the recall match. Does anyone know what I should do next? I had read about getting a new LCD inverter, but at the same time I am now unemployed and really have no dough.... I'm a sound engineer, and I need my PB to be mobile. The only thing that had happened recently is that I installed the newer version of Pro Tools on my machine, LE 6.9. Please HELP!
    PB G4 Ti   Mac OS X (10.3.9)  

    You might have to restore the pictures from your ""backup" you have on iCloud. But, then again, that would put your iPhone back to the last state it was in when doing that backup. But at least you would have all your pictures back.
    iin any case, I wouldn't do any further backups or any changes to your iCloud account, until you've got your pictures back again. Proceed cautiously and carefully at this point, until you get an answer that will safely restore the pictures.

  • How to restrict number of rows display using ig:gridView

    Hi
    All
    How to restrict number of rows display using <ig:gridView datasource="{mybean.mylist}">
    i am getting 10 rows using data_row . i wanna show only first 5 rows .
    pageSize ="5" will be ok . but it displays remaining rows in next page. but i want to display only first 5 rows . is there any attribute to restrict number of rows.
    thanks
    rambhapuri

    I have no idea which component you're talking about. If want to discuss here about a non-Sun JSF component, then please mention about the name, version and build in detail. You can also consider posting this question at the website/forum/mailinglist of the component manfacturer rather than here. At least I can tell you that the Sun JSF h:dataTable has the 'rows' attribute for that. I can also suggest you to just take a look in the TLD documentation of the component in question. There should be all possible attributes listed with a detailed explanation about the behaviour.

  • 0 down vote favorite share [fb] share [tw]        How to hide cut/copy/paste/Replace- menu on the UIWebView when it is being displayed over the keyboard.  Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text b

    How to hide cut/copy/paste/Replace… menu on the UIWebView when it is being displayed over the keyboard.
    Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text box it shows the keyboard. Now If user tap and hold on text box it shows a popup menu. Now while keyboard and pop up are being displayed user scrolls the view. At this time it shows pop up over the keyboard which I need to hide.
    I tried setMenuVisible of UIMenuController when popup rect and keyboard rect intersects each other on viewDidScroll but it didn't help me.
    Any clues will help a lot.
    Thanks.

    You are more likely to get an answer if you post programming problems to the Developer forum. This forum is intended for normal user level problems.

  • End of page in ALV display using OOPS

    Hi all,
       How can i display end of page or footer in ALV display using OOPS concept.
    Thanks,
    vinit

    Hi ,
    Try using this code.
    First add a handler method in your handler class definition as:
    e.g. METHOD handle__end_of_page
    FOR EVENT print_end_of_page OF cl_gui_alv_grid .
    Then implement the method in the implementation part of your local class.
    e.g. METHOD handle_print_end_of_page .
    WRITE:/ 'Flights Made on ', sy-datum .
    ENDMETHOD .
    And register this method as the handler.
    SET HANDLER gr_event_handler->handle_print_end_of_page FOR gr_alvgrid .
    Hope this helps.
    Regards,
    Janaki.

  • Select a range of rows to be displayed using ROWNUM

    I am trying to select a range of records to be displayed using Rownum
    It works using MINUS
    SQL> select rownum,department_id,department_name from departments where rownum <= 20
    minus
    select rownum,department_id,department_name from departments where rownum < 11;
    but does not work if a range is specified
    select rownum,department_id,department_name from departments where rownum >= 11 and rownum <= 20;
    What has gone wrong?
    Details of what I have tried are as follows:
    Connect to the sample schema HR
    SQL> connect hr/hr
    SQL> desc departments
    Name Null? Type
    DEPARTMENT_ID NOT NULL NUMBER(4)
    DEPARTMENT_NAME NOT NULL VARCHAR2(30)
    MANAGER_ID NUMBER(6)
    LOCATION_ID NUMBER(4)
    List all records in Departments
    SQL> select rownum,department_id,department_name from departments;
    ROWNUM DEPARTMENT_ID DEPARTMENT_NAME
    1 10 Administration
    2 20 Marketing
    3 30 Purchasing
    4 40 Human Resources
    etc......
    26 260 Recruiting
    27 270 Payroll
    27 rows selected.
    List the first 10 records in DEPARTMENTS
    SQL> select rownum,department_id,department_name from departments where rownum <= 10;
    ROWNUM DEPARTMENT_ID DEPARTMENT_NAME
    1 10 Administration
    2 20 Marketing
    etc.....
    10 100 Finance
    List row number from 11 to 20, but cannot no rows selected. Why?
    SQL> select rownum,department_id,department_name from departments where rownum >= 11 and rownum <= 20;
    no rows selected
    Use of MINUS can retrieve row number from 11 to 20
    SQL> select rownum,department_id,department_name from departments where rownum <= 20
    minus
    select rownum,department_id,department_name from departments where rownum < 11;
    ROWNUM DEPARTMENT_ID DEPARTMENT_NAME
    11 110 Accounting
    12 120 Treasury
    13 130 Corporate Tax
    14 140 Control And Credit
    15 150 Shareholder Services
    16 160 Benefits
    17 170 Manufacturing
    18 180 Construction
    19 190 Contracting
    20 200 Operations
    10 rows selected.

    For each row returned by a query, the ROWNUM pseudocolumn returns a number indicating the order in which Oracle selects the row from a table or set of joined rows. The first row selected has a ROWNUM of 1, the second has 2, and so on.
    Conditions testing for ROWNUM values greater than a positive integer are always false. For example, this query returns no rows:
    SELECT * FROM employees
    WHERE ROWNUM > 1;
    You can get the selected records based on the rownum using the inline query....
    SQL> select rownum, empno from emp;
    ROWNUM EMPNO
    1 7369
    2 7499
    3 7521
    4 7566
    5 7654
    6 7698
    7 7782
    8 7788
    9 7839
    10 7844
    11 7876
    ROWNUM EMPNO
    12 7900
    13 7902
    14 7934
    14 rows selected.
    SQL> select * from (select rownum rn, empno from emp) where rn > 2 and rn < 5;
    RN EMPNO
    3 7521
    4 7566

  • I recently connected my new MBA to an ACER display using the appropriate Apple hardware to connect to a VGA port. The quality of the ACER display is poor- the image is not clear. How do I achieve the same clarity of picture as my MBA screen?

    I recently connected my new MBA to an ACER display using the appropriate Apple hardware to connect to a VGA port. The quality of the ACER display is poor- the image is not clear. How do I achieve the same clarity of picture as my MBA screen?

    Welcome to the Apple Community.
    AirPlay Mirroring requires a second-generation Apple TV or later, OS X 10.8 or better and is supported on the following Mac models: iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), and MacBook Pro (Early 2011 or newer).
    On the basis of the specifications you have given for your set up, mirroring should work.

  • MacBook suddenly won't detect my display, Using Mini Display Port to VGA?

    MacBook suddenly won't detect my display, Using Mini Display Port to VGA?

    dohdoh1985, I have the exact same problem also! I recently bought a 42" RCA LCD TV. I connected my MacBook Pro to my TV using a Dynex Mini DisplayPort to HDMI adapter that I got from BestBuy. It worked great until I upgraded to Mac OS 10.6.4 and then it suddenly stopped working. Same TV, same settings, same cables, same adapter. Nothing changed since the last time it worked except that my OS was upgraded to 10.6.4, so i am assuming that is the culprit. The symptoms are EXACTLY the same as what dohdoh1985 described; when I plug in the TV, the laptop display flashes (3 times) as though it is detecting an external display and the picture on the TV briefly goes from blue to black for about 1 second then back to blue. The TV does not appear in the display menu / control panel and there is no sign that the MacBook detected it. I went through the usual troubleshooting steps (reset PRAM, checked connections, tv settings, etc) but nothing worked. Other HDMI sources (i.e. Blu-ray player) work fine on the TV using the same HDMI cable on the same port so there is nothing wrong with the cable, the TV or the TV's input settings.
    Meanwhile, I can still connect my MacBook to my external ViewSonic monitor at work without any problems. It's just the TV that's not working.
    I cancelled my cable subscription a while ago since I only watch shows online nowadays and this was my only way of watching TV shows, so I'm quite upset.
    Apple, please help!

  • Dual Display using ADC

    Hi. I have PowerMac G5, 1.8GHZ with CRT display and NVDA, Display-A. The PCI card has two output, DVI-I and ADC. DVI-I is connected to SONY display and functioning fine. I want to add another display using ADC. I bought ADC-DVI connector from the apple store (Dr Bott ADC DVI exctractor II). I also bought apple's DVI to video adaptor. Using these, I'm trying to make video display on the NTSC monitor.
    ADC-DVI-RCA
    It doesn't display. Could anyone tell me why it doesn't work?
    martha

    Greetings,
    The ADC-DVI cable only works with LCD monitor, not with CRT. Swap your connection of monitors the other way round and this should work.
    George Chew

  • Thunderbolt display using HDMI to Thunderbolt convertor

    I have a latest Sony Vaio Laptop with a HDMI port. Can i connect the Apple Display using a HDMI to Thunderbolt connector. Thanks

    I was wondering this too. I have an LCD display that I share with my FreeNAS server(DVI IN) and MacBook(HDMI in using display port adapter ) which works , but I'd love to switch the the thunderbolt. unfortunately there is only enough room for a single display in my workspace, so I can't have both.
    hopefully either Apple or a 3rd part will come up with a way to make the TBolt more flexible.

  • Connect to 2 external displays using 2 thunderbolt to hdmi cables

    I have a new iMac which has 2 thunderbolt ports.  I was told that I can add 2 displays using these ports with thunderbolt to hdmi cables.  However when I do this only one screen connects.  The other remains blank (and off).

    Hello, I wonder if HDMI isn't the problem?
    It's supposed to...
    2nd Display Support:
    Dual/Mirroring*
    2nd Max. Resolution:
    2560x1600 (x2)
    Details:
    *This model can simultaneously support two external displays up to 2560x1600 via Thunderbolt.
    http://www.everymac.com/systems/apple/imac/specs/imac-core-i5-2.9-27-inch-alumin um-late-2012-specs.html
    Do the monitors have anything besides HDMI?

Maybe you are looking for

  • ALV layout variant missing in background job.

    hi guys, Having problem on getting the default ALV layout variant when run the job in backgorund. Please advise any correction needed in the following code. Thanks. *&  Include           Z_MM_KBR_AGSUBCONINV_MOD2                        * MODULE statu

  • Need to run SQL in BQY

    Hi All, I have a client where he is using Custom SQL in the query section. The following SQL statement retrieves the results at the database side without any issues. But the same when used in the IR studio Custom SQL it is throwing errors like "inval

  • AP - Is it possible to apply a Deposit to an Invoice via a API or Interface

    Hi, Some knows if it's possible to apply deposit trough an API or during the invoice interface process? Oracle EBS R12.1 Thanks in advance for the feedback.

  • Form SYSTEM does not exist "Message no. TD 705"

    Hello all, When I go to transaction FB03 for any document. Drill down on a line item.  Click on pencil to change the line item.  Click on long text button.  Click on the editor icon.  Message received "Form SYSTEM does not exist".  The display is in

  • Satellite P75/P70 - is RGB output 1920 x 1080 ?

    Hi I know the  HDMI  Port on my Toshiba Satellite will output video at  Full HD. My questions is:- =>  does the  RGB  Port on my Toshiba Satellite  P75/P70  output video at  Full  HD  Resolution  1920 x 1080  ? and if yes =>  does the RGB Port  also