Oracle XML Publisher Java API's showing arabic characters as question marks
Hi All,
I have created a custom xml publisher report. All the setups in xdo.cfg and the fonts have been installed. When i run the report as concurrent program using the XDODTEXE as the executable this report executes fine displaying the arabic characters in the PDF output.
I have integrated this xml report to a OAF page where am getting the output of the arabic characters as ???????
Following is the java code i have used to generate the blob for the xml publisher report.
pageContext.writeDiagnostics(this,"Inside process Template",4);
AppsContext appsContext = ((OADBTransactionImpl)pageContext.getRootApplicationModule().getOADBTransaction()).getAppsContext();
String applicationShortName = dataDefApplication;
String dataSourceCode = dataDefCode;
OutputStream os = new ByteArrayOutputStream();
try {
DataTemplate dataTemplate = new DataTemplate(transaction.getAppsContext(), dataDefApplication, dataDefCode);
//Get Parameters
ArrayList parameters = dataTemplate.getParameters();
//set Parameter Values as ArrayList of oracle.apps.xdo.dataengine.Parameter
Iterator it = parameters.iterator();
while (it.hasNext())
Parameter p = (Parameter) it.next();
pageContext.writeDiagnostics(this,"Processing Parameters "+p.getName(),4);
if (p.getName().equals("P_AUCTION_HEADER_ID"))
if(AuctionHeaderId != null)
p.setValue(AuctionHeaderId);
else
p.setValue(null);
dataTemplate.setOutput(os);
dataTemplate.processData();
System.out.println(os.toString());
} catch (SQLException e) {
System.out.println("SQLException occurred.");
} catch (XDOException e) {
System.out.println("XDOException occurred.");
} catch(Exception e){
System.out.println("Exception (other) occurred.");
byte[] xmlb = os.toString().getBytes();
BlobDomain blob = new BlobDomain(xmlb);
return blob;
Kindly let me if i had missed something.
Thanks
Anoop
On a related note, I am seeing a couple of different types of 'incorrect' characters based on different NLS_LANG settings.
If it is set to AMERICAN_AMERICA.UTF8, I get characters like this:
رقم الموظ�
If it is set to ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256, I get characters like this:
ÑÞã ÇáãæÙÝ
Do any of you know what these characters are?
Thanks for any insight.
Similar Messages
-
Oracle BI Publisher Java API Converting Excel(.xls) to PDF
Dear Oracle Team,
I'm suffering from converting Excel(.xls) to PDF file which Excel is having some complex Pie charts and formulas.
I've worked on some APIs but not converting properly, Please suggest me any Java API's in Oracle BI Publisher and provide me some code snippet
Thanks in advanceHi,
Can any one please reply to my post -
Some RTF commands not working in Oracle XML Publisher Desktop 5.6.3
Hello,
I am using Oracle XML Publisher Desktop 5.6.3 (Patch 5887917) and seems like some of the RTF command are not working. I am following Tim Dexter's blog (http://blogs.oracle.com/xmlpublisher/2007/10/here_are_my_terms_conditions.html ) and could not make the "new" commands from his blog, work in my template.
<?section:force-page-count;'end-on-even-layout'?> -- even with this on the template, I'm still getting output with odd total numpages
<?section:xdofo:blank-on;'even-skip-page-count'?> -- cannot suppress the NUMPAGES value of MS Word
Do I need to apply additional patch(es) on top of Patch 5887917 for the MS Word add-on? Could you please tell me what am I missing?
Thanks.Hello,
I am trying to install the latest version but getting the error below when performing Preview.
ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdo.cfg
Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
Template: C:\Documents and Settings\rmembrere\My Documents\MyDelorme\XML Publisher Project\CONVERSIONS\templates\DEL_POs\DEL\PO_TEST_AGAIN.rtf
RTFProcessor setLocale: en-us
RTFProcessor setConfig: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdo.cfg
FOProcessor setData: C:\Documents and Settings\rmembrere\My Documents\MyDelorme\XML Publisher Project\CONVERSIONS\templates\DEL_POs\DEL\PO_Sample_2020870.xml
FOProcessor setLocale: en-us
FOProcessor setConfig: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdo.cfg
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
at RTF2PDF.runRTFto(RTF2PDF.java:629)
at RTF2PDF.runXDO(RTF2PDF.java:439)
at RTF2PDF.main(RTF2PDF.java:289)
Caused by: oracle.xdo.parser.v2.XPathException: Variable not defined: '_XDONFSEPARATORS'.
at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
... 15 more
Anybody who has used the commands (page suppression) provided by Tim in his blog? May I know from what version you have done it? The blog was posted back in 2007.
Thanks! -
How to print Barcode data in Oracle XML Publisher Report
Hi,
We have an rdf report which prints Bar code in the starting page based on a custom procedure from MarkView. It works well with Oracle Reports.
But since the current report was a matrix report, we are changing it to a Linear report through Oracle XML Publisher Report.
We have all the things possible in the new Oracle XML Report.. But we are unable to print the Bar code data which is BLOB in the XML Report..
Can anyone help me on this? We have UAT dates around the corner..
We have an RTF Template .
Help asap.
Thanks
AbhilashHi Abhishek,
Bar code Registration Steps in XMLPublisher responsibility:
1. Go to responsibility XML Publisher Administrator
2. Open Administration
3. Open Font Files Tab
4. Create Font File
5. Give Font Name : XX_BARCODE
6. File : Browse Barcode file
7. Apply
8. Go to Font mapping Tab
9. Open Create Font Mapping Set
10. Give Mapping Name: XX_BARCODE
11. Give Mapping Code: XX_BARCODE
12. Type : FO TO PDF
13. Apply
14. Open Tab Create Font Maping
15. Font Family: Code39-Digits(This name should be exactly the font name comes in word)
16. Style: Normal
17. Weight: Normal
18. Target Font Type: Truetype
19. Continue
20. Font : XX_BARCODE
21. Apply
1. Go to Template Tab
2. Query for your template
3. Open Edit Configuration
4. Click on FO Processing
5. In Font Mapping set Give XX_BARCODE
RTF Template (word):
1.Design the RTF template
2.Insert the barcode against reqd field
3.Make sure to put an * before and after the barcode so that scanner understands the beginning and end
Please send your rtf ,xml file if you are still facing issues.
Rgds, -
Oracle XML Publisher 5.6.2
Dear All,,
How to integrate Oracle XML Publisher 5.6.2 report with ADF appication,including passing report parameters.
thankshttps://metalink.oracle.com/metalink/plsql/f?p=130:14:5396698038376187095::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,367394.1,1,1,1,helvetica
MetaLink Note ID: 367394.1 -
Sort Date format in Oracle XML Publisher
Hi All,
I have a requirement like trx_date sort. i have taken trx_date in dd-mon-yyyy format. now i given sort option like this..
<?for-each:G_TRX_ORDER_NUMBER?><?sort:TRANSACTION_TYPE?><?sort:DUE_DATE;'ascending';data-type=date?> <?sort:TRX_NUMBER?>
now i have 3 dates
07-NOV-10
20-MAY-11
20-DEC-10
using above sort option.. this dates are not coming as per the ascending order.
Can any one tell me what i have to ?
ThanksWhat is your application release?
Does the sort work for other data types?
What if you change "<?sort:DUE_DATE;'ascending';data-type=date?>" to "<?sort:DUE_DATE;'ascending';data-type='date'?>", does it make any difference?
Few examples about the sort can be found in these docs/links.
How to Group Data Dynamically at Runtime in a BI/XML Publisher RTF Template? [ID 1062816.1]
Sorting Data In eText Template [ID 1263511.1]
Oracle XML Publisher User's Guide
http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115xdoug.zip
Thanks,
Hussein -
BI Publisher Java API not displaying Barcode in PDF Report
Hi Team,
I have used BI Publisher java API in my ADF Application to generate PDF reports. It is not displaying barcodes in the PDF Reports. I have included Code 39 ttf file in my java home as well. Please let me know if any other configuration needs to be done.
I am using jdev version 11.1.2.0.0. Please help me out if anyone knows the solution to this problem.
Thanks in advance,
Kavitha{forum:id=245} is the BIP forum.
-
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile
Where can I find "Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile"?
Thanks a lot for your time.Hi, this is referring to the JavaDocs for Java methods/classes supported by ADF Mobile. You can typically right (or ctrl) click on any ADF Mobile specific Java method and select "JavaDoc". You can open up a sample app that contains any Java class - for example the HR sample app, and find any method with name "adfmf*". You should be able to see the Java doc for the ADF Mobile related methods/classes.
Thanks,
Joe Huang -
Oracle XML Publisher Template Builder 5.5
I have seen references to this word plug-in in various XML Publisher demos and presentations, but cannot find where to download the plug-in. Could anyone please provide some insight?
Thanks,
BrettBrett,
The patch number given in your reply doesn't seems to exist. Here is the patch number I found in Metalink.
Patch 4239263
Description XDO/ORACLE XML PUBLISHER TEMPLATE BUILDER PATCH 1.0.0
Product XML Publisher
Release Applications 11i
Platform or Language -------- Platforms --------Microsoft Windows (32-bit)
Last Updated 14-MAR-2005
Size 31M (32764293 bytes)
Thanks, Anbu Kuppusamy -
Where can I find the complete Oracle Business Rules Java API Reference ?
Does anybody know where to get the complete Oracle Business Rules Java API Reference ?
The version on http://download-east.oracle.com/docs/cd/B31017_01/web.1013/b28966/toc.htm is incomplete. It is missing the entire "oracle.rules.sdk.ruleset" package.
KiKim,
The oracle.rules.sdk.ruleset package is only for internal operation. The public interface to creating rules is oracle.rules.sdk.editor.ruleset , and this is included in the javadoc. -
Special character showing as upside down question mark on oracle report
We have an oracle report which selects data from a database table. Report shows a name field and names with a special character is showing as upside down question mark.
The name is Simon John ễễ BaileyŠğčẫ
But when we run the oracle report the name is showed with 6 upside down question marks
I am not sure if these characters are unicode? (beyond western european character set)
Oracle database: 11.2.0.1 with nls_characterset = AL32UTF8
Oracle Reports Server: 10.1.2.3.0 with the following locale settings:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Any ideas, suggesstions, is this font related issue?
Thanks for your help.You mean the operating system where the Oracle reports server resides?
-
Help please! My macbook air (2015) startup showed a folder with question mark so i tried "Command R" for internet recovery but after few minutes it stopped and showed error.. Please hepl me!
Startup – Question Mark
Startup Issues - Resolve
Startup Issues - Resolve (2)
Startup Issues - Resolve (3) -
What does it mean when an item in my dock shows up as a question mark?
I had this problem when I downloaded Firefox. I don't know what I did, but the logo shows up fine now. However, I downloaded a program called GIMP and -while I can get it to work- it still shows up as a question mark in my dock. When I click on it, the icon shows up, but when I restart it goes back to a question mark. Did I miss a step? Should I reinstall? I am lost.
This suggests that the application's being launched from a disk image. Drag it to the internal drive and from there to the Dock.
(81941) -
Hi, I am looking for documentation for the Java APIs. I have the XML Publisher User Guide but would like some reference documentation for the APIs, javadoc or otherwise.
Is there also any documentation aimed specifically at interacting with XML Publisher from an external application using the core APIs?The javadoc is included with the XML Publisher enterprise 5.6.2 in the doc folder.
Hope that helps,
Klaus -
Patch 5027437 Oracle XML Publisher Desktop 5.6.2
Hi
Did any body download the New Desktop XML Publisher Patch (5.6.2)?
I can not find at meta link. Is this available?
Thanks
ASIMhttps://metalink.oracle.com/metalink/plsql/f?p=130:14:5396698038376187095::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,367394.1,1,1,1,helvetica
MetaLink Note ID: 367394.1
Maybe you are looking for
-
Just bought a new ipod touch for my daughter. It won't sync without itunes 10.5.2 loaded on our computer (a 2005 HP with Windows XP and service pack 2.) When I've tried to load 10.5.2, I get an error message box stating there is a problem with my W
-
Get error message when I try to plug in my newly updated iphone top my PC
Just installed the new os7 on my phone and now when I plight it into my PC I get an error message. "The iPhone cannot be used because it requires iTunes version 11.1 or later. Go to www.itunes.com to download the latest version of iTunes." What do I
-
Variable screen is taking too much time for some reports
Hi all, We are using a sales billing cube for our billing reports . For one query , variable screen takes lot of time to come , i have in RSRT , i have generated the reoprt there and also executed the report there , it s fine there.Morever iam not us
-
Color Swatches in Toolbar for Fill and Stroke are not working properly.
The color swatches in toolbar for fill and stroke are not functioning as they should. When I select an object on the artboard, the swatches display fine in the toolbar for what they should be. However, when I double-click on those swatches from wit
-
Display japanese characters - beginner
I'n beginner in i18n. I read documentation about i18n but I have problems. I'm trying to read japanese characters from a file and and diplay them in a label or text area, but I cannot. The file is OK. If I open it with MsWord the fonts are recognized