Not inserting special charactors like in HTMLDocument insertHTML

hello,
I want to allow special charactrs to get inserted in HTMLDocument of JtextPane like > < .
I know I can encode them by ;&gt & ;&lt
But What if i want to insert a <img src='blabla' > , here the < > tags of img will also get replaced.
How can we handle this situation?
thanks
Ani

thanx again for replying...
Here m using ;&gt for gr8er than symb n    ;&lt for less than I this post editor  dont show these charactors.
You are exactly right about the logic .. I have used RE only .
but in case of swing module, situation is little different , I am getting a message on which my swing module drives is for ex.
hi <img src='images/smile.gif'>  where all replacement is already done.
so here I can insert the above msg directly as HTML using insertHTML but my pbm is what about the charactors like ;&gt ;&lt which are not displaying on the JtextPane HTML Document.
SPECIALLY WHEN i TRIED TO INSERT THE MESSAGE LIKE
<note> : I want this <img src='images/smile.gif'>So in insertHTML , the msg displaying is nothing as it starts with ;&gt .
;&lt is getting ok but ;&gt giving me pbm.
any solu'n for this ;&gt?

Similar Messages

  • How to Insert special character like 'Б б В в Г Д  ж Ğ ğ € ₧ š Ž ž'

    Hi All,
    My database NLS_CHARACTERSET is ABLAUT and my sql client setting is AMERICAN_AMERICA.AL32UTF8.
    when i try to insert the special character like 'Б б В в Г Д ж Ğ ğ € ₧ š Ž ž' in oracle it shows question mark or square box
    can any one help me how to insert the above character and view the same in database while retrieving.
    Thanks in advance.
    By
    Chells

    I'm not sure.
    Perhaps UNISTR() or TO_NCHAR() will be helpful.
    select level, unistr(concat('\', TO_CHAR(Level, 'FM000X'))) from dual connect by level < 300;

  • How to insert special character like trademark and registered mark.

    I have tried using prepared statment, but characters like � (registered mark) are not inserted properly, in fact i tried using some debug statements before inserting. the data that is coming from html form fields it self shows that � - such characters are converted to ? . So on consol instead of � i see ?. How do I make sure that data passing from html form will pass � in a right manner and not ?. Also how do i insert these symbols in database

    What database are you using, and what is the character set use for storage in that database?
    What character set is your HTML page using?
    You may have a character set mismatch somewhere. The registered symbol � is character 174 in Unicode and LATIN-1, so it cannot be displayed using just the ASCII character set.
    If you have the character in a java String, it should be passed to the database properly with a PreparedStatement. Strings are Unicode in java.
    Scott
    http://www.swiftradius.com

  • DomHandle can not fetch special characters like , or &......

    hi friends......
    I'm using following packages...........
    When I store special characters....like < , > or &......DomHandle can not fetch the values from xml file......why so??? Anybody faced same problem??????
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    import org.w3c.dom.*;
    import java.io.*;
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;

    it actually converts < & > to < & > and so
    on.......but still when it again tries to read
    it....it fails & throws exceptionDepending on what is to be accomplished, I had an issue earlier today and this is how I solved it:
    I needed to put a url with post data:
    Something
    Now to do this we can split this up in parts, tried writing out everything using CDATA and a few other things. But the Damn <'s and >'s would get converted into &lt; and &gt;
    So I did this:
    <a>
    <xsl:attribute name="href">
    <![CDATA[bob.jsp?something="]]><xsl:value-of select="@SomeAttrib"/><![CDATA["]]>
    </xsl:attribute>
    Something</a>
    Hope this helps

  • Inserting special character like apostrophes with PHP/Mysql

    Hi friends,
    I have a problem with php/mysql. I have created a form inton a php page with dreamweaver and when i try to fill the form with a string containing apostrophe ( ' ), i have a error. It seems that the insertion is not possible. Could you have any idea for that. I give you the php dreamweaver code and thank you for your help.
    <?php require_once('Connections/Mainconnect.php'); ?>
    <?php require_once('Zend/Date.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
    if ($theValue=="")
        $theValue="NULL";
    else
        $zendDate=new Zend_Date($theValue,"dd/MM/yyyy");
        $theValue="'".$zendDate->toString("yyyy-MM-dd")."'";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE pers_soc_reg SET field1=%s, field2=%s,
                           GetSQLValueString($_POST['field1'], "text"),
                           GetSQLValueString($_POST['field2'], "double"));

    "Normally, you canot use mysql_real_escape_string without connection to database"
    That is not true at all. Try running the following script.
    <?php
    if ($_POST['submit']){
    $x1=$_POST['test1'];
    foreach ($_POST as $key => $value) {
    if (!is_array($value)){
    $_POST[$key] = mysql_real_escape_string($value);
    extract($_POST);
    echo "The text after 'becomes' should be escaped (\')<br/>";
    echo "$x1 becomes $test1<br/>";
    ?>
    <hr/>
      <form action="#" method="post" />
    Enter some text, including an apostrophe: <input name="test1" type="text"><br/>
        <p><input name="submit" value="submit" type="submit"/>
      </form>

  • In Pages for iPad is it possible to insert special characters like those for logic and math?

    Hello there,
    Is there a way to digit special characters in Pages for iPad?
    I need to include in my document logical symbols.
    Thank you!

    Thank you Tom Gewecke for that app suggestion!  I've been wanting this for a long time.

  • How to insert special character from Oracle form builder 10g

    Dear all,
    I need help. how to insert special character like 'Superscript or Subscript ' from oracle form builder 10g. I had try in Oracle form builder 6i with press ALT+ASCII code in the text item and it work, but in the oracle form builder 10g this method doesn't work... would you like to help me...somebody please...
    Best Regard,
    Dedy P.T.

    What do you mean by insert ... from Forms Builder? Do you mean you want to add it as text in a string of pl/sql code or as part of boiler plate text (label) or a value on the Property Palette?
    For special characters you would need set NLS_LANG to something that would support the characters you want to use. For the Builder to see the change, you would need to set NLS_LANG to something like:
    NLS_LANG=AMERICAN_AMERICA.UTF8
    This can be done in the Windows Registry or system. As I mentioned, this will only apply to the Builder and will have nothing to do with a running form. For running forms you would need to set this in default.env. As for things like super and sub scripts, these are font formats and not necessarily characters. For the most part, I don't believe these are supported in Forms.

  • Inserting Special Character using SQL*Plus

    I am trying to insert special character like ® using SQL*Plus but it is inserting a .(dot) instead.
    Environment:
    Oracle Enterprise version : 9.2.0.3.0
    Sun Solaris 8
    Any help will be appreciated.
    Regards,
    Nirmalya

    That's the reason I use ASCII values always for special characters.
    SQL> create table sample1(col1 varchar2(50))
      2  /
    Table created.
    SQL> insert into sample1
      2  select 'The temperature outside is 20'||chr(176)||' centigrade' col1
      3  from dual
      4  /
    1 row created.
    SQL> commit
      2  /
    Commit complete.
    SQL> select * from sample1
      2  /
    COL1
    The temperature outside is 20° centigrade
    1 row selected.
    SQL> drop table sample1 purge
      2  /
    Table dropped.
    SQL> Cheers
    Sarma.

  • How can i see the callers special information like Job Title, Company name, and may be notes?

    I need to see the caller’s  special infos in call screen.  Like Company name, Job Title?
    Please dont say me, “put these info to name&surname field”, because that, i’m useing Outlook Contact and i cannot change it.
    I tried some special programs like (Call Screen (caller id Screen) prog: https://itunes.apple.com/tr/app/call-screen-caller-id-screen/id446742417?l=tr&mt =8 ) but it changes the persons picture but it not refresh itself, if i change info.
    Lots of people asked same question but there is no any exact answer.
    I think it must be a metbod for the seeing this special info in call screen.
    Oldest Nokia and Blackberry model phone shows  this info, More smart phone iPhone can shows it i think. Please show me, how can i see this infos in call screen.

    Other than finding an App to do what you want, or putting the info in the name field, you can't, as this is not a feature of the stock iOS.

  • Grid does not display special characters (as square boxes)

    SQLD 1.5.1 (54.40):
    We found out, special characters like newline will not shown in data grid in any way. But we need to know, if there are such characters. If there any way to get these characters visible?
    Pls try following case
    create table mytab (mycol varchar2(20));
    insert into mytab(mycol) values('Test'||char(13));
    commit;
    select * from mytab;
    You will not see the appended newline character within the grid, while toad is doing .

    You're right that whitespace doesn't show as squares anymore (I think they did in the past), but everything else seems OK.
    Why don't you try something like this and prove for yourself:
    select '     
    !"#$%&''()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ' from dualRegards,
    K.

  • Suitable OSS Note for special charecters when upload a file

    hi,
    can anbody help me in finding OSS Note for
    special charecters in file upload as i was unable to print  'é' this charcter as a result it was going into short dump
    Please help me

    Hi,
    Are u using smatrforms, if it is
    Create text in smart form->click edit button of text->menu->insert->characters->displayable characters->then select ur special charactor.
    that no will display in text node. check that no with OSS note.
    Thanks,
    Sendil

  • Help!!urgent!!can not insert/update clob:the row containing the lob is not locked

    Hi,
    could you do me help?
    i can not insert a string into a oracle clob field, it echo as:
    ORA22920 row containing the lob value is not locked. ORA 06512 at "SYS.DBMS_LOB" line 708
    ORA 06512 at line 1;
    what its means? please.
    my table defined as : create table clob1(id number(5),mclob clob default empty_clob()); the id is create by a sequece of test_sequence automaticly.
    my code as belows:
    import java.io.*;
    import java.sql.*;
    //import oracle.sql.*;
    public class test4 {
    public static void main(String args[]) {
    String url_String
    = "jdbc:oracle:thin:test/test@myhost:1521:myorcl";
    try {
    Class.forName
    ("oracle.jdbc.driver.OracleDriver");
    java.sql.Connection con =
    java.sql.DriverManager.getConnection(url_String);
    con.setAutoCommit(true);
    Statement stmt
    =con.createStatement();
    String sqlStr ="insert into
    clob1 (mclob) " + "values(empty_clob())";
    stmt.executeUpdate(sqlStr);
    String query = "select
    test_seq.CURRVAL from dual";
    ResultSet rs =stmt.executeQuery
    (query);
    rs.next();
    int currval =rs.getInt(1);
    query = "select * from clob1 where
    id="+currval;
    String str
    ="abcedefhijklmnopqrstuvwxyz";
    rs =stmt.executeQuery(query);
    rs.next();
    java.sql.Clob clob1
    =rs.getClob(2);
    oracle.sql.CLOB clob=
    (oracle.sql.CLOB)clob1;
    System.out.print(clob);
    java.io.Writer
    wr=clob.getCharacterOutputStream();
    wr.write(str);
    wr.flush();
    wr.close();
    stmt.close();
    con.close();
    } catch(Exception ex) {
    System.err.println("SQLException: "
    + ex.getMessage());
    null

    Hi,
    To avoid ORA-22920 error while selecting lob column, use the 'for update' clause in the select statement like :
    query = "select * from clob1 where id="+currval+" FOR UPDATE" ;
    This should solve the problem. However, after fixing this, you might get the error :
    java.sql.SQLException: ORA-1002: fetch out of sequence
    I got this error when testing your code. To avoid this error, before executing 'select ... for update' statement Set AutoCommit to OFF, like :
    query = "select * from clob1 where id="+currval+" FOR UPDATE" ;
    con.setAutoCommit(false);
    rs =stmt.executeQuery(query);
    Hope that Helps,
    Srinivas

  • RFC is not inserting the data

    Hi all,
                    I did File to RFC scenario. My problem is when i send message the message is showen as processed successfully in SXMB_MONI. But RFC is not inserting my data in a specified table. I couldn't found where i am wrong.
    my sender strucure is:
    <MANDT>
    <WORKDATE>
    <EMPLOYEENUMBER>
    <CATSHOURS>
    R3 table name is ZTESTCATSDB
    My RFC source code is :
    FUNCTION Z_POST_TEST.
    ""Local Interface:
    *"  TABLES
    *"      CATSRECORDS_IN STRUCTURE  ZTESTCATSDB OPTIONAL
    *"      RETURN STRUCTURE  BAPIRET2 OPTIONAL
      data wa_cats like ZTESTCATSDB.
      data wa_catdb like ZTESTCATSDB.
      data ztab  like ZTESTCATSDB OCCURS 0 WITH HEADER LINE.
      loop at catsrecords_in into wa_cats.
        ztab-WORKDATE = wa_cats-workdate.
        ztab-empnum = wa_cats-empnum.
        ztab-catshours = wa_cats-catshours.
        append ztab.
      endloop.
      insert ZTESTCATSDB from table ztab.
      commit work.
    ENDFUNCTION.
                          Plese tell me any one where i am wrong it is very urgent for me.
    Thanks,
    Satish.

    You should always check the system return code (sy-subrc) after any insert and update statement like this:
    insert ...
    if sy-subrc > 0.
      message E...
    else.
      commit work.
    endif.
    Hope that helps,
    Stefan

  • Why I can not insert into a table?

    Hi, all,
    I have a table "personstudy" with records already. Its primary key is "subjectid". and I have added a new column named "personstatus" varchar2(20) to it. After that, I want to insert into the field with "enrolled" for all records there. My script is like this:
    insert into personstudy (personstatus) values ('enrolled');
    the system reports:
    ERROR at line 1:
    ORA-01400: cannot insert NULL into ("FLOWLIMS"."PERSONSTUDY"."SUBJECTID")
    I just can not understand it. Is there any wrong with my script?
    Thank you!
    Qian

    maybe want you need is not insert a new rows but to update the existing records to have the 'enrolled' value put into the column personstatus.
      update personstudy
         set personstatus = 'enrolled';

  • How to insert special character in sgm file and interprete it without isoents while opening in FM9.0

    I have an sgm file which contains special characters in different languages.
    <!DOCTYPE MANUAL PUBLIC "-//SWE-XXX//DTD XXX MANUAL-DTD 2.0//EN">
    <MANUAL LANG="CS">
    <TITEL>
    Polish characters: &oacute;&ecirc;&iquest;&ntilde;&aelig;&Ntilde;&AElig;&Ecirc;&yen;&Oacute;&pound;
    Czech characters: &eacute;&igrave;&oacute;&iuml;&aacute;&oslash;&egrave;&iacute;&ugrave;&ograve;&uacute;&Og rave;&Igrave;&Eacute;&Oacute;&Uacute;&Ugrave;&Egrave;&Oslash;&Iacute;&Aacute;&Iuml; aacute: &aacute;</TITEL>
    </MANUAL>
    Is there any way to insert special character directly in sgm file, so that it won't have to be interpreted by isoents mapping rules?
    isoent.rwr interpretes oacute as:
    entity "oacute" is fm char 0x00F3;
    But I would like to use 0x00F3 directly in fm file, so that if any additional character is needed - I won't have to update isoent files
    I've tested already:
    &#x00F3;
    &x00F3;
    &0x00F3;
    but with no luck
    Is there anyone who could help me with it?
    I will really appreciate your help
    /Joanna

    Hi Michael. Thank you for your reply.
    There is no declaration within sgm file itself - but while opening the file I use sgml application definition with the following settings:
    Default API client:  FmTranslator
    SGML character encoding:  ISO Latin1
    XML character encoding:  UTF-8
    Namespace: Enable
    CSS2 Preferences:
    Generate CSS2: Disable
    Add Fm CSS Attribute To XML: Disable
    Retain Stylesheet Information: Disable
    Entity locations
    Entity search paths
    C:\Program Files\Adobe\FrameMaker9\Structure\sgml\isoents
    So as you can see, character encoding is set to ISO Latin1 (there is no way to use UTF-8 encoding in sgml files)
    Typing ź or ć in sgm document and opening it with framemaker sgml application - I receive: ¿æ and message: "Non-SGML character found; should have been character reference"
    Everything works fine when I type f.ex.: &x016B; and insert appropriate reference lines into isolat1.rw and isolat1.ent files
    But what I would like to avoid is editing those isoent files each time new character is be needed.

Maybe you are looking for

  • Looking for very simple drawing app for tablet [Solved]

    Hey, Im running Arch with XFCE on an Asus T91MT tablet/netbook, with a resistive screen & pen. I'm looking for a very basic, lightweight, tablet-oriented drawing/sketching/doodling app, to make notes, draw ideas/concepts, etc. I've tried MyPaint, whi

  • ITunes has stopped working - iTunes 12.1

    I just updated iTunes 12 to 12.1 on two Windows 7 x64 systems. On both systems, iTunes fails to run now although 12.0 ran perfectly. Upon clicking on the iTunes program icon, I get a dialog:           Runtime Error!           Program:  C:\Program Fil

  • Load library failed when trying to call OPMN

    Hi, I have installation of DB and AppServer on one computer, DB is working really nice, but I have problems with appserver - when I try to start it from start menu - then there is timeout, but when I am trying to execute opmnctl from command line - t

  • Sub Total display in Samrtforms

    Hi , I need to display sub totals in my smartform.Infact I have used Calcualtions Tab Under TABLE with Operation "Total"  and Time "After Loop"  which is displaying wrong values when Internal Table values are spanned to multiple pages. Can any body h

  • Error:No direct postings can be made to G/L acct. 110003 in CoCode 2000

    HI Friends, I am the getting the above error while making service PO. cost centre and GL account are given. Please help to resolve this Regards, Ram