Displaying Numeric Character Entities
I�m having a problem displaying numeric character entities such as ��� (m-dash) in my Java application. I have noticed that some characters will show up correctly and some will not, for example �}� (Right curly brace) shows up just fine. I�m having the same problem with Japanese numeric character entities such as �式�. The encoding that is being used here is UTF-8.
I am reading the text that contains these entities from a XML file using the following code:
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
dbf.setIgnoringComments(true);
dbf.setIgnoringElementContentWhitespace(true);
try {
FileInputStream fff = new FileInputStream(theFile);
InputSource inSource = new InputSource(new InputStreamReader(fff,"UTF-8"));
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(inSource);
} catch (Exception e) {
System.out.println("Exception: " + e);
}Here is a simple example of an xml file.
<?xml version="1.0" encoding="UTF-8"?>
<toc name="Course One" file="course1/toc.xml">
<topic name="Topic � One" file="course1/source/topic1.html"/>
<topic name="式 (Japanese char)" file="course1/source/topic2.html"/>
</toc>When I print out the contents of the name attribute I get boxes (or a ?) in place of the character entity. Any help that can be offered here would be greatly appreciated.
Thanks,
David
I just realized that the entities that I put in my post were resolved by the browser, so they didn't show up as the actual numeric entity code as I intended, — (& + #151;) for m-dash } (& + #125;) for the curly brace and 式 (& + #24335;) for the Japanese character. The XML file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<toc name="Course One" file="course1/toc.xml">
<topic name="Topic — One" file="course1/source/topic1.html"/>
<topic name="式 (Japanese char)" file="course1/source/topic2.html"/>
</toc>
Similar Messages
-
Displaying HTML character entities in JEditorPane
Hi,
I have noticed that when displaying HTML character entity references in a JEditorPane it will show some of them, e.g. © for copyright symbol but not others e.g. ’ for "curly" single quote.
Is there any way to get JEditorPane to show all (most?) of them?Create a class that extends ComboBox and override the
updateDisplayList and measureText functions. Then use that new
ComboBox in your code:
<local:HtmlComboBox .. xmlns:local="components.*".>
<local:itemRenderer>
<mx:Component>
<mx:Text htmlText="{data.label}" />
</mx:Component>
</local:itemRenderer>
</local:HtmlComboBox>
Put this into a folder called "components" and name the file
HtmlComboBox.as
package components
import mx.controls.ComboBox;
import flash.text.TextLineMetrics;
public class HtmlComboBox extends ComboBox
public function HtmlComboBox()
super();
override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
super.updateDisplayList(unscaledWidth,unscaledHeight);
var s:String = textInput.text;
textInput.htmlText = s;
override public function
measureText(text:String):TextLineMetrics
return measureHTMLText(text);
} -
How do I display Tools Developer Page Source without HTML Character Entities, such as & and
I am using Firefox 8.0 on Windows XP. In earlier versions of Firefox, when I would display the page source, the page would be displayed in all its original characters, including < > & and so on (including the HTML reserved characters.)
Now when I display page source, the page source is displayed, but instead of displaying html tags,
<p> for example,
it will display <p> in the source instead.
For a longer example, instead of displaying
<p class="stuff">text to display</p>
the source is rendered as
<p class="stuff">text to display</p>
Is there a way to direct Firefox to display page source using all actual characters instead of using character entities?Clarification.
The html tags render until it encounters this code:
<input id="htmlHidden" type="hidden" value="&lt;div id=&quot;content&quot;&gt;
&lt;div id=&quot;content-inside&quot;&gt;
&lt;div id=&quot;content-space&quot;&gt;
&lt;div id=&quot;about&quot; class=&quot;node&quot;&gt;
&lt;div class=&quot;node-inner&quot;&gt;... -
I'm trying to pull data from an Oracle database using SSIS. When I try to select a few fields from the source table, it returns the following error message:
[OLE DB Source [47]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E14.
An OLE DB record is available. Source: "OraOLEDB" Hresult: 0x80040E14 Description: "ORA-01858: a non-numeric character was found where a numeric was expected".
An OLE DB record is available. Source: "OraOLEDB" Hresult: 0x80004005 Description: "ORA-01858: a non-numeric character was found where a numeric was expected".
The source columns are a combination of numeric and texts, and I've also tried selecting one of them, which didn't work. I'm using the Oracle client 11.2.0.1, and it works fine with any other data sources I have connected to so far. How can I resolve this
error?Hi H.James,
According to your description, the issue is a non-numeric character was found where a numeric was expected while pulling data from an Oracle database in SSIS.
Based on the error message, the issue should be you are comparing a number column to a non-number column in a query. Such as the query below (ConfID is a number, Sdate is a date):
where C.ConfID in (select C.Sdate
from Conference_C C
where C.Sdate < '1-July-12')
Besides, a default behavior for the Oracle OleDb Provider that change the NLS Date Format of the session to 'YYYY-MM-DD HH24:MI:SS can also cause the issue. For more details about this issue, please refer to the following blog:
http://blogs.msdn.com/b/dataaccesstechnologies/archive/2012/01/20/every-bug-is-a-microsoft-bug-until-proven-otherwise.aspx
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
This is my error:
javax.servlet.ServletException: ORA-01858: a non-numeric character was found where a numeric was expected
This is my code:
ResultSet myRs = myStmt.executeQuery("select count(*) dexCount from cs_dexia where userid = '" + vUserid + "'");
int vCount = 0;
while(myRs.next()){
vCount = myRs.getInt("dexCount");
out.println(vCount);
if(vCount > 0)
response.sendRedirect("swapform.jsp");
What have I done wrong?I have changed that and am now getting:
javax.servlet.ServletException: ORA-00904: invalid column name
the query runs in my sql tool no problem, could it be something to do with the alias? -
ORA-01858: a non-numeric character was found where a numeric was expected
hi ,
This was the code which shows the sales rep invoice amount and collected amount but while running report thru concurrent program its showing the following error:
ORA-01858: a non-numeric character was found where a numeric was expected
WHERE TO_CHAR ( TO_DATE ( PS.GL_DATE , 'DD/MON/YY' ) , 'MON-YYYY' ) BETWEEN TO_CHAR ( TO_DATE ( : ==> P_todate , 'YYYY/MM/DD' ) , 'MON-YYYY' ) AND TO_CHAR ( TO_DATE ( : P_todate , 'YYYY/MM/DD' ) , 'MON-YYYY' ) AND ps.customer_id = cust.custome
The Actual Code was this
SELECT SUBSTR(SALES.name,1,50) salesrep_name_inv,
--ps.CLASS,
SUM(ABS(ps.acctd_amount_due_remaining)) acctd_amt,
SUM(ABS(ps.amount_due_remaining)) amt_due_remaining_inv,
SUM(ABS(ps.amount_adjusted)) amount_adjusted_inv,
SUM(ABS(ps.amount_applied)) amount_applied_inv,
SUM(ABS(ps.amount_credited)) amount_credited_inv,
SALES.salesrep_id,
NULL "REMARKS"
-- ps.gl_date gl_date_inv,
FROM ra_cust_trx_types ctt,
ra_customers cust,
ar_payment_schedules ps,
ra_salesreps SALES,
ra_site_uses site,
ra_addresses addr,
ra_cust_trx_line_gl_dist gld,
gl_code_combinations c,
ra_customer_trx ct
WHERE TO_CHAR(TO_DATE(PS.GL_DATE,'DD/MON/YY'),'MON-YYYY')
BETWEEN TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY') AND TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY')
AND ps.customer_id = cust.customer_id
AND ps.customer_trx_id = ct.customer_trx_id
AND ps.cust_trx_type_id = ctt.cust_trx_type_id
AND NVL(ct.primary_salesrep_id, -3) = SALES.salesrep_id
AND ps.customer_site_use_id+0 = site.site_use_id(+)
AND site.address_id = addr.address_id(+)
AND TO_CHAR(TO_DATE(PS.GL_DATE_CLOSED,'DD/MON/YY'),'MON-YYYY')
BETWEEN TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY') AND TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY')
--AND ps.gl_date_closed > TO_DATE(:P_todate,'MON-YYYY')
AND ct.customer_trx_id = gld.customer_trx_id
AND gld.account_class = 'REC'
AND gld.latest_rec_flag = 'Y'
AND gld.code_combination_id = c.code_combination_id
AND sales.salesrep_id is not null and sales.name is not null
-- and ps.payment_schedule_id+0 < 9999
-- AND SALES.salesrep_id ='1001'
GROUP BY SALES.name,
--ps.CLASS,
SALES.salesrep_idSo to_date function accepts a string as input and returns a date. When a date is input instead, it is implicity converted to the required type of the function paremeter, which is a string, so that to_date can convert it back to a date again.
If you are lucky with the implicit conversion, you get the same date back, if you are not you might get a different date or an error.
From your query it appears that this conversion from a date, to a string, to a date, and then back to a string using to_char this time, is being done to remove the time or day part of the date. The actual range comparison is being done on strings rather than dates, which is dangerous as strings sort differently than dates.
In this example if I sort by date, Jan 01 comes between Dec 00 and Feb 01 as you would expect.
SQL> select * from t order by d;
D
12-01-2000
01-01-2001
02-01-2001When converted to strings, Feb 01 comes between Dec 00 and Jan 01, which is probably not the desired result
SQL> select * from t order by to_char(d,'DD-MON-YY');
D
12-01-2000
02-01-2001
01-01-2001If you want to remove time and day parts of dates you should use the trunc function
trunc(d) removes the time, trunc(d,'mm') will remove the days to start of month.
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions201.htm#i79761 -
Handling Character Entities - Java Mapping Issue
Hi Experts,
I need to replace the character entities in my input XML. But, the problem is the java mapping I've written isn't replacing the character entities as expected. For example if my input XML contains <NAME>&><XYZ</NAME>, then the ouput is <NAME>&:>:<0001<:/NAME>, whereas it should be <NAME>&:>:<:0001</NAME>.
Note: I've used : instead of ; just to show it properly SDN.
Can any of you share the code for the same if you've used it already?
Thanks a lot in advance.
Regards,
Hussain.Hi Pooja,
Thanks for your prompt reply.
Are you trying to use the java mapping just to handle the character entities or your interface itself only has a java mapping?
- I'm using Java Mapping just to handle the character entities. Say my input XML looks like
<?xml version="1.0" encoding="UTF-8"?>
<resultset>
<row>
<ID>&<1</ID>
<MESSAGE><![CDATA[<?xml version="1.0" encoding="UTF-8" ?><LGORT>&<0001</LGORT>]]></MESSAGE>
</row>
</resultset>
I need to replace &< in <ID> to &:<: and similarly for CDATA <LGORT>&:<:0001</LGORT> before I process it in XI. In my java mapping I read the whole XML as string (line by line as mentioned below) and try to replace the character entities using some logic, which isn't working properly.
StringBuffer buffer = new StringBuffer();
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, "UTF-8"));
for (String lineRead = reader.readLine(); lineRead != null; lineRead = reader.readLine()) {
buffer.append(lineRead);
I've also checked the thread mentioned by Srinivas. But, StringEscapeUtils.escapeXml() would replace all the character entities like <:?XML... , which would result in an invalid xml...
Please suggest.
Thanks,
Hussain. -
How do you get a TextField.htmlText to display a character?
I'm trying to have a dynamic text field display htmlText and
I've run into a bug/problem where the text field will NOT display
the < character (less than sign). In fact, unless I escape that
character like: \<, the text field stops displaying ANYTHING
after a < as well.
var tff:TextFormat = new TextFormat();
tff.size = 12;
tff.color = 0x000000;
tff.align = "left";
mytextField.ptf.type = "dynamic";
mytextField.ptf.multiline = true;
mytextField.ptf.html = true;
mytextField.ptf.embedFonts = false;
mytextField.ptf.selectable = false;
mytextField.ptf.autoSize = "left";
mytextField.ptf.htmlText = myHTMLString;
mytextField.ptf.setTextFormat(tff);
mytextField is a clip on the stage that has a dynamic text
field in it. it's set to Arial and Use Device Fonts.
the results when
var myHTMLString:String = "<i>this</i> is a
<b>sample piece</b> of html text with a \<
character."
displays:
this is a
sample piece of html text with a \ character.
and when
var myHTMLString:String = "<i>this</i> is a
<b>sample piece</b> of html text with a <
character."
displays:
this is a
sample piece of html text with a
I presume that it's having problems displaying the <
character because it's confusing it with the start of an html tag.
How do you escape the < character so it can be displayed?
I tried url and html encoding it (< and %3C) but got
the same resultshttp://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15863
-
Replace Non-Numeric Characters with a Numeric Character in a String
Hi Guys,
I need to replace all the non-numeric characters (including embedded blanks & hyphen) in a string to a numeric character '1'.
The trailing blanks should not be replaced.
e.g. "P22233344455566" should be changed to "122233344455566"
& "49-1234567 " should be changed to "4911234567 "
Please help.Use [replace|http://help.sap.com/abapdocu_70/en/ABAPREPLACE_IN_PATTERN.htm] with a regular expression to translate any non-numeric character (i.e. any character not between 0 and 9) to 1:
REPLACE ALL OCCURENCES OF REGEX '[^0-9]' IN value WITH '1'.
Cheers, harald
p.s.: In older releases [translate|http://help.sap.com/abapdocu_70/en/ABAPTRANSLATE.htm] would also do the trick, but is more lengthy, because one would need to specify each individual character that should be replaced, e.g.:
TRANSLATE value TO UPPER CASE.
TRANSLATE value USING
' 1_1-1a1b1c1d1e1f1g1h1i1j1k1l1m1n1o1p1q1r1s1t1u1v1w1x1y1z1'. -
Sqlldr with error: non-numeric character was found when numeric number
Hi,
I have been struggling with this problem for long, can't get to anywhere.
I am trying to use sqlldr to load a CSV file into table, the table looks like this :
AD_ID NUMBER(38)
CNTCT_ID VARCHAR2(60)
AD_FILE_NAME VARCHAR2(80)
AD_TITLE VARCHAR2(300)
AGCY_APRVL_DATE DATE
CORE_APRVL_DATE DATE
ENTR_CMNT CLOB
IC_APRVL_DATE DATE
PURP_TEXT CLOB
RVW_BRD_APRVL_DATE DATE
ACTIVE_FLAG VARCHAR2(1)
.......................................more fields
The control file looks like this:
LOAD DATA
INFILE "C:\ORACLE_IRTMB\IRPADS\SQL_DATA\ADS_T.CSV"
BADFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.BAD"
DISCARDFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.DSC"
truncate INTO TABLE ADS_T
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
AD_ID INTEGER ,
CNTCT_ID char ,
AD_FILE_NAME char ,
AD_TITLE char nullif (AD_TITLE=BLANKS) ,
AGCY_APRVL_DATE DATE "MM/DD/YYYY" nullif (AGCY_APRVL_DATE=BLANKS) ,
CORE_APRVL_DATE DATE "MM/DD/YYYY" ,
ENTR_CMNT CHAR(7000) nullif (ENTR_CMNT=BLANKS) ,
PURP_TEXT CHAR(7000) nullif (ENTR_CMNT=BLANKS) ,
RVW_BRD_APRVL_DATE DATE "MM/DD/YYYY" ,
ACTIVE_FLAG char ,
....more fields
The Data file looks like this:
10132,simpsonl,PMSDHHStemplate.pdf,"Depression, Irritability, Mood Swings Sound Familiar?",1/13/2003,11/14/2002,,1/13/2003,"The NIMH is conducting research on premenstrual
10133,jolkovsl,10133ClozapineDHHS ver 0.pdf,Mood Swings? Unpredictable Moods? Are These Moods hard to Treat?,1/28/2003,11/14/2002,,1/28/2003,"The NIMH is conducting a study to test the efficacy of ...
--- and log file looks like this:
Record 5: Rejected - Error on table ADS_T, column RVW_BRD_APRVL_DATE.
second enclosure string not present
Record 7: Rejected - Error on table ADS_T, column RVW_BRD_APRVL_DATE.
second enclosure string not present
Record 9: Rejected - Error on table ADS_T, column RVW_BRD_APRVL_DATE.
second enclosure string not present
Record 2: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 4: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 6: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
IF I use to_date in control file:
LOAD DATA
INFILE "C:\ORACLE_IRTMB\IRPADS\SQL_DATA\ADS_T.CSV"
BADFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.BAD"
DISCARDFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.DSC"
truncate INTO TABLE ADS_T
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
AD_ID INTEGER ,
CNTCT_ID char ,
AD_FILE_NAME char ,
AD_TITLE char nullif (AD_TITLE=BLANKS) ,
AGCY_APRVL_DATE "to_date(:AGCY_APRVL_DATE,'MM/DD/YYYY')" ,
CORE_APRVL_DATE DATE "MM/DD/YYYY" ,
ENTR_CMNT CHAR(7000) nullif (ENTR_CMNT=BLANKS) ,
IC_APRVL_DATE DATE "MM/DD/YYYY" ,
PURP_TEXT CHAR(10000) nullif (PURP_TEXT=BLANKS) ,
RVW_BRD_APRVL_DATE DATE "MM/DD/YYYY" ,
I got extracctly same error message as above...
If I use to_char in control file:
LOAD DATA
INFILE "C:\ORACLE_IRTMB\IRPADS\SQL_DATA\ADS_T.CSV"
BADFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.BAD"
DISCARDFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.DSC"
truncate INTO TABLE ADS_T
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
AD_ID INTEGER ,
CNTCT_ID char ,
AD_FILE_NAME char ,
AD_TITLE char nullif (AD_TITLE=BLANKS) ,
AGCY_APRVL_DATE "to_char(:AGCY_APRVL_DATE,'MMDDYYYY')" ,
Then it's said a not valid number
Record 2: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
ORA-01722: invalid number
Record 4: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
ORA-01722: invalid number
Record 6: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
ORA-01722: invalid number
Record 8: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
ORA-01722: invalid number
someone, please help me out here.
Thanks a lot.
Weihello
pls use to_date
If your session is set to default date format of DD-MON-YY, execute the following and you will receive the error message:
SQL> select to_date('20-JAN-2010', 'DD-MM-YYYY') from dual;
ERROR:
ORA-01858: a non-numeric character was found where a numeric was expected
no rows selected
When you are converting a string to a date, you have specified that the date is being passed in DD-MM-YYYY format. But you have passed the date in DD-MON-YYYY format. As the month is expected as a number by oracle, but you have passed a character, oracle is unable to translate the string to a number.
Do one of the following:
SQL> select to_date('20-JAN-2010', 'DD-MON-YYYY') from dual
2 /
TO_DATE
20-JAN-2010
OR
SQL> select to_date('20-10-2010', 'DD-MM-YYYY') from dual
2 /
TO_DATE
20-JAN-2010
or you can use alter sessin set nls_date_format='.....................';
regards -
ORA-01858: a non-numeric character found where a digit was expected
Hi,
I'll cut introductions short. We're trying to read data from a flat file (OWB ver.9.2. by the way). After successfully mapping, then generating (with two insignificant warnings), we execute.
Although it says the execution was 'successful', more than a dozen errors return in the form of ORA-01858: a non-numeric character found where a digit was expected
a - Here is the error:
Record 1: Rejected - Error on table "TOPSSTAGE"."FLTR_DCS_IRREG", column "OPERATIVE_FLIGHT_LEG_DATE".
ORA-01858: a non-numeric character was found where a numeric was expected
*it's actually repeated 20 times (Record 1, Record 2, and so on and so forth...) with the same exact error description and details.
b - Here's the part of the OWB-generated script that defines the creation of that field/column:
"OPERATIVE_FLIGHT_LEG_DATE" DATE "mm/dd/yyyy"
c - And here's the data from the flat file (1 of 4 rows)
"2/20/2007","I","0899","N","TPE","MNL","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","750","950","746","955"," P3231",,"04","32","32",,,,,,,,"758","946",,"A000","4","D000","5","000","0","0","0","0","D","P","0","0","0","0","0","0","0","0","0","0","0","2/22/2007","000","012","144","2/20/2007","2/20/2007"
*the part where it is in bold is the one that is mapped from the column OPERATIVE_FLIGHT_LEG_DATE to the OPERATIVE_FLIGHT_LEG_DATE column (flat to physical, right?)
it is set as DATE in all settings (mapping, file, etc..)
Any form of help will be greatly appreciated :)
Thanks!
Regards,
_lilimHi Bharadwaj,
Yes, I believe you are right. And yes that column is designated a primary key. The weird thing is, we do have null values being entered into the table from the flat file, but these values are far from the "OPERATIVE_FLIGHT_LEG_DATE" column (index-wise). Let me give you an example of our case:
this is a row in the flat file: (sample data only)
"2/20/2007","I","0899","N","TPE","MNL","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","750","950","746","955"," P3231",,"04","32","32",,,,,,,,"758","946",,"A000","4","D000","5","000","0","0","0","0","D","P","0","0","0","0","0","0","0","0","0","0","0","2/22/2007","000","012","144","2/20/2007","2/20/2007"
as you can see, I've made the 'null' values bold, as well as the data for OPERATIVE_FLIGHT_LEG_DATE (which shows up, as you can see, at the end of the row).
Now, in the OWB table, the OPERATIVE_FLIGHT_LEG_DATE column is set as a primary key (or foreign, i think, I'll check again) and, thus, is set as one of those columns to first receive data transferred from the flat file.
We see nothing wrong with our mask (which is mm/dd/yyyy by the way) as well as with our data type settings. It has to be with the flat file I guess. We're gonna try putting in dummy values in place of the null ones in the flat file. I'll get back to you asap. Thanks for helping out. :D
Regards,
_lilim -
Cannot display Thai. character in List box elements
Hi all,
I have set the Fonts to Ms San Serif to all items in a form, all items seems can display Thai. character correctly. For List box, it can display Thai also, but the elements in the selections cannot.
Does any expert know how to fix this ?
Thanks!Hi Kinghow,
Thanks for your reply!
The problem still can't solve after set the auto csv code select "Yes". The excel file still can't display Thai character.
Am i using a correct way to generate excel file? Do you have any suggestion to export data to excel using pl/sql?
If i removed below part, then the excel file working well.
htp.tableOpen(cattributes=>'border="1",bordercolor="BLACK",align="CENTER"');
for x in (select srd_line_prop,srd_line_dtl from schd_rptd where srd_queue_no=:P401031_QUEUE_NO and srd_line_prop='H' order by srd_queue_no,srd_line_no)
loop
htp.tablerowopen(cattributes => 'bgcolor="#81F7F3"');
for i in 1..pkg_wwe.split_count(x.srd_line_dtl,'|') loop
if i = 1 then
htp.p('<TD nowrap align="center" width="70px" > <font size="2" face="arial" color="#088A08">');
htp.p(pkg_wwe.split(x.srd_line_dtl,'|',i));htp.p(' ');htp.p(' ');
htp.p('</TD>');
else
htp.p('<TD nowrap align="center" width="70px" > <font size="2" face="arial" color="#08088A">');
htp.p(pkg_wwe.split(x.srd_line_dtl,'|',i));htp.p(' ');htp.p(' ');
htp.p('</TD>');
end if;
end loop;
htp.tableRowClose;
end loop;
htp.tableClose;
I really do not have any idea on how to solve this problem. Is really strange on this problem. -
Display Chinese character in iText
hi all I need to display Chinese character in my pdf file
I have iTextAsian.jar on my libraries , but the Chinese character did not show up
nested1.addCell(new Phrase(chinessname));I download freetype-2.1.10,
and I get ./configure --enable-static
./configure: make: not found
how to continue ... inorder to create your owner font
by the way I download the new extrajars-2.1.zip, this new jar supporting Chinese characters . but my first font is not working second font is work fine I don't know why?
first one
BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED); not working
//second one
BaseFont bfChinese= BaseFont.createFont("MSungStd-Light", "UniCNS-UCS2-H", BaseFont.NOT_EMBEDDED);
Thank you! -
Display chinese character HTML in iPS3sp3
Hi there,
I am using iPS3sp3 and I modified it so that JSP can display chinese character correctly. But somehow I still can not display the chinese character in normal HTML.For instance, I put chinese character in Ldap.properties file but when user go to the Ldap login screen, the chinese can not be displayed correctly. The following is the modification I have done and can anybody please give me some help?
adding zh_TW in iwtPlatform-availableLocales
adding zh_TW in iwtPlatform-locale
adding BIG5 in iwtPlatform-HTMLcharset
adding ips.locale=en_US,zh_TW,zh_TW.BIG5 in platform.conf file
Setting, User's Default Locale: zh_TW
Setting, User's Default HTML charset: BIG5Finally, I made it work. The solution is pretty straight forward. All I need to do is to convert these kind of html file to utf8 encoded files and then, it works perfectly. Hope this might be useful for some people.
-
Rendering text that contains old-style HTML character entities, e.g. ü
The large text-corpus I'm working with was produced before the days of widespread Unicode support, and it contains HTML character entities instead of unicode codepoints, e.g. ü for ü [u-umlaut].
I can iterate through every text column in the ArrayCollections that I'm using for dataProviders to the DataGrid, and replace these entities with their unicode counterparts before the provider is assigned to the grid. But is there already a mechanism in place in Flex to render character entities in the DataGrid? Is there a ready-made ItemRenderer that can do this?
ThanksDrClap wrote:
So your example looks like this?
<someNode>der fuchs springt über den stein</someNode>
now I feel stupid :-) Yes, that's correct.
And you're actually getting an EntityReference node in your Document? I find that rather strange, since the documentation for EntityReference says
Note that character references and references to predefined entities are considered to be expanded by the HTML or XML processor so that characters are represented by their Unicode equivalent rather than by an entity reference.
Exactly!
Because what you have there is a character reference. Is there something else in the document, a DTD for example, which might be interfering with that?No, just an ordinary XML header:
<?xml version="1.0" encoding="UTF-8"?> ...If it helps, I can also post the complete document I am receiving.
Maybe you are looking for
-
Create Cursor from File with big mouse cursor
Hi All, I'd like to change the mouse cursor to a picture (.cur file) and back to normal again. With the LabView vi "Create Cursor from File" and "set cursor" VIs it works, but the cursor is limited to 16x16 pixels (it will be shrinked if I load a big
-
When I scan and save the document to a pdf, it comes out completely grayed out. What did I do wrong?
-
I set up my Google mail in native mail app as a Google mail account and everything worked for a couple weeks. Now the mail app is only pulling mail from 2011 and older. I set up my mailbox on a couple other collegues iphones and have the same issue
-
Using an iMacG4, OS 10.4.5 and iMovie 4.0.1: Importing a movie fragment (30 seconds) from VHS via MiniDV camcorder, the image is much darker in iMovie than either VHS or DV. "Sharing" via quicktime is also too dark. How can I lighten the image in iMo
-
Function issue-Data is getting highly duplicated PLSQL
Hi Edited by: user_7000011 on Apr 8, 2009 12:00 PM