While eliminating special characters problem &; insertion via AJAX!
Hi allIn my application, I'm using ajax concept, using the selection list I'll be populaed the data in a multiple-selection list.
The problem is if a description contains '&' operator beween two words is not fetchig records.
Suppose that we have retained as 'john & king' core values for empno "10."
In this case the values are not met as a result.
Could you please help me how to solve this problem...
Thank you
David...
Apply the htf.escape_sc () function to the column value (s) from the base.
Tags: Database
Similar Questions
-
Hello
Please help me to remove the special characters when loading using sqlldr.
I am trying to load some data from a data file
test.csv
But after loading the table for the lastname column, I see some special characters like little boxes, making the increment of length by 1.MemberID,MBR_SUFFIX,LETTER_Date,Drawer,Folder,LetterID,Position,DOB,FirstName,LastName 931021321,10,20100419,4,34104,AGE29,0,,JOSEPH,LEBOVITS 931766197,10,20100419,4,34104,AGE29,0,,MICHAEL,MARRONE 930450614,10,20100419,4,34104,AGE29,0,,BRUNO,LOIA 939147142,10,20100419,4,34104,AGE29,0,,MARY,MATARAZZO 930867919,10,20100419,4,34104,AGE29,0,,DAVID,SCHONFELD 930576878,10,20100419,4,34104,AGE29,0,,SARANTOS,VARELLAS 931058329,10,20100419,4,34104,AGE29,0,,LARRY,HILLPOT 930099675,10,20100419,4,34104,AGE29,0,,HOWARD,EIFERMAN 931976458,10,20100419,4,34104,AGE29,0,,DAVID,WEINGARTNER 931814575,10,20100419,4,34104,AGE29,0,,JESSICA,GERMANY 931911445,10,20100419,4,34104,AGE29,0,,DOMENICO,REGA 930444053,10,20100419,4,34104,AGE29,0,,AUDA,PICHARDO 931814560,10,20100419,4,34104,AGE29,0,,JASON,THORS 931171736,10,20100419,4,34104,AGE29,0,,OKORO,UKPABI
How can I avoid it.
Help, pleaseIf you use SQL Loader, then you can call pl/sql functions, placing them between quotes along the column of data loaded, like this for example.
LastName position(10:40) "replace(:LastName,chr(13),'')",
-
UTF-8 encoding and special characters PROBLEM
Hello
I have attached a code: when I run this code, I see the french instead of french.
Can someone help me out here?
Thank you!!
Bert> Can someone help me out here?
> you said CF that your page is utf-8, is it?In fact (s) he did NOT SEE that the template is UTF - 8, which is the
problem.You told CF to expect form and URL in UTF - 8, you said it
to deliver UTF-8 in the browser and it said the browser that takes place is
UTF-8, but you didn't SEE to READ THE TEMPLATE in UTF-8 format.http://livedocs.Macromedia.com/ColdFusion/7/htmldocs/00000312.htm
--
Adam -
Special characters escaped HOWTO if you use regexp_replace and regexp_substr
Hello experts,
following test case
insert into querytest1 (d) values
("#1 (170): [{'type': 'FACEBOOK', 'count': 0, 'Larry': 1382627403299}, {'type': 'GOOGLE', 'count': 0, 'Larry': 1381825285002}, {'type': 'EMAIL', 'count': 2, 'Larry': 1381826322925}] #2(0): #3 (5):-3141 #4 (5):-3141 #5 (5): 21804 #6: (7) 3890750 #7(3): s11'");
Select regexp_replace (d, REGEXP_SUBSTR (REGEXP_SUBSTR (d, ' [^] +', 1, 1), "[^:] +' 1, 2"), ") of querytest1;
ERROR on line 1:
ORA-12726: unparalleled support in regular expression
evidence that the characters special [] {} are the problem:
delete from querytest1;
commit;
-Insert data without special characters
insert into querytest1 (d) values (' #1 (170): 'type': 'FACEBOOK', 'count': 0, 'Larry': 1382627403299, 'type': 'GOOGLE', 'count': 0, 'Larry': 1381825285002, 'type': 'EMAIL', 'count': 2, 'Larry' [: 1381826322925] #2(0): #3 (5):-3141 #4 (5):-3141 #5 (5): 21804 #6: (7) 3890750 #7(3): s11');
Select regexp_replace (d, REGEXP_SUBSTR (REGEXP_SUBSTR (d, ' [^] +', 1, 1), "[^:] +' 1, 2"), ") of querytest1;
REGEXP_REPLACE (D, REGEXP_SUBSTR (REGEXP_SUBSTR(D,'[^]+',1,1),'[^:] +', 1, 2), ")
--------------------------------------------------------------------------------------------------------------------
[#1 (170): 'FACEBOOK', 'count': 0, 'Larry': 1382627403299,: 'GOOGLE', 'count': 0, 'Larry': 1381825285002,: 'EMAIL', 'count': 2, 'Larry': 1381826322925,: 'EMAIL', 'count': 2, "Lamarre": 1381826322925] #2(0): #3 (5):-3141 #4 (5):-3141 #5 (5): 21804 #6: (7) 3890750 #7 (3): s11
so now it works because there is no characters [special])
is there a way to escape them?
Thank you in advance.
Hello
Since you are using Oracle 11.2, you can do it with a WITH recursive clause, like this:
MERGE INTO dst t
WITH THE HELP OF)
MORPHING (q, result, n_to_do, start_pos, end_pos) AS
(
Q SELECT
, d || ' ' AS a result
REGEXP_COUNT (q
, '#\d+\(\d+\):'
) AS n_to_do
REGEXP_INSTR (q,
, '#\d+\(\d+\):'
1
REGEXP_COUNT (q
, '#\d+\(\d+\):'
)
) AS start_pos
LENGTH (q) AS end_pos
T
UNION ALL
Q SELECT
REPLACE (result
, ':' || n_to_do | ' '
, NVL (RTRIM (REGEXP_SUBSTR (SUBSTR (q, 1, end_pos))))
, '#\d+\(\d+\):(.*)'
start_pos
1
NULL
1
)
)
, 'NULL '.
)
) AS a result
, n_to_do - 1 AS n_to_do
REGEXP_INSTR (q,
, '#\d+\(\d+\):'
1
BIGGER (1
, n_to_do - 1
)
) AS start_pos
REGEXP_INSTR (q,
, '#\d+\(\d+\):'
1
n_to_do
) - 1 AS end_pos
MORPHING
WHERE n_to_do > 0
)
Q SELECT, result
MORPHING
WHERE n_to_do = 0
) CBC
WE (dst.q = src.q)
WHEN MATCHED THEN UPDATE
SET dst.result = src.result
;
You can have any number of rows in table t, but they must have a unique key. I assumed q was unique, highest, but it can be a column or combination of columns.
It works with any number of values.
The character "#" can occur in the values, just that it does not part of the point of shells #-figures-leftparen-figures-rightparen-colon. If "#" occurs in this model, you can't simplify regular expressions, as John.
The above solution was written for the table that you posted in response #6, where q contained values, and d was the formula with the holders of the place for values. You seem that overthrew in your last message, you may need to reverse I used q and d.
Whatever your problem, it seems to be a way very uncomfortable to solve. You need to rethink your data model. In particular, stroring data in delimited as q lists are a bad idea. Relational databases work best when when each column contains a single value, not a list of any number of values. It is so basic to the design of database he called first normal form.
This would help a lot if post you more simple examples. Instead of having 7 values, some close to 200 characters, you could show the problem just as well (better, in fact) with 3 or 4 values, no tha 10 don't characters each.
-
Special characters could not load DB via SQL * MORE
Hi, I have a pl as .accidentally sets sql script which will insert data in database. The question is there are some records are missing and these missing records contains a special character: Sansao and Strasse. The strange was if I run the script via F5 (Toad), all data can be inserted successfully but run through SQL * MORE (Toad), all records that contain special characters are not inserted.
Anyone here know why it didn't load these special characters via SQL * MORE?
Probably because you have given unicode (multi byte charsets) you read with a customer of standard single-byte character set.
It's SILLY to loading data using SQL * more. It's the wrong tool used for loading the data. It does not support the bind variable. It doesn't support liaison in bulk. It does not support direct path inserts. It is not SQL * Loader.
-
Inserting special characters in the APEX 4.0.2
Hello
I am building an application for use in the Brazil.
I am facing a problem on inserting data with special characters.
For example:
FRANCE in Portuguese is FRANCA. There is a special character-> C
I use a report form.
On the form I type Franca and when I click on create, it refers to the report and shows me French.
c is replaced to a§
If I connect to the database.
I run a select statement and it shows me French.
I have the update Franca and it shows me Franca correctly on the selection.
Back to APEX, it shows me correctly Franca.
I guess the question is on Insertion in the database.
Can someone help me?
Thank you
LeoGood to know. If it please report the answer as being correct, so more people can benefit, in future research.
Thank you.
-
Problem with Demo_Mail package sending an attachment and special characters
Hello
I did use the Demo_Mail package with the example in the http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html for many years on my 9i database.
Recently, we have taken a form that depends on this package and quickly found that Asian characters were not correctly in the e-mail subject or body. When I changed the procedure by example, characters came through, however, attachments now appear in the body of the email as ascii.
/*------------------------------------------------------start the email creation--------------------------------------------------------------------*/
Conn: = demo_mail.begin_mail)
sender = > from_name,.
recipient = > to_name,.
subject = > subject,.
mime_type = > "text/plain; charset = utf8');
() demo_mail.write_mb_text
Conn = > conn,.
message = > message | UTL_TCP. CRLF);
If file1 is not null
then
() demo_mail2.begin_attachment
Conn = > conn,.
mime_type = > ' application/octet-stream. "
Online = > FALSE,
v_filename = > file1.
transfer_enc = > 'base64');
file_len: = dbms_lob.getlength (wire);
modulo: = mod (file_len, TN);
parts: = trunc(file_len / amt);
/ * (dbms_lob.read (wire, amt, filepos, buf); * /)
While (counter < = pieces) LOOP
DBMS_LOB. Read (wire, amt, filepos, buf);
demo_mail.write_raw (conn, utl_encode.base64_encode (buf));
filepos: = counter * TN + 1;
counter: = counter + 1;
END LOOP;
/ * Point on the rest of the data buffer * /.
IF (modulo <>0) then
DBMS_LOB. Read (wire, modulo, filepos, buf);
demo_mail2.write_raw (conn, utl_encode.base64_encode (buf));
end if;
() demo_mail.end_attachment
Conn = > conn);
end if;
() demo_mail.end_mail
Conn = > conn);
/*------------------------------------------------------end the email creation--------------------------------------------------------------------*/
How can I have my cake and eat it too? Examples of scripts showing this scenario exist?
In addition, even if I was able to get the body of the email to display special characters, the subject line still displays question marks instead of the special characters. I was never able to solve this problem.
Any help to any of these questions is greatly appreciated!
Thank you
KimYou use the utl_encode.quoted_printable_encode before making all these changes? Most, if not all, of these accented characters must be converted to quoted printable form by the utl_encode.quoted_printable_encode function, then you only need to focus on the specific characters that must be encoded to the channel to cover additional expenditures for the mimeheader encoding. Specifically the white space characters should be encoded as well as the question mark.
Also, I have done some minor testing and it seems that the quoted_printable_encode function folds the text when it exceeds a specific length. If I unfold the coded text object lines seem to come by fine. The folding text string is an equal sign followed by the sequence CRLF, unfold the text is a simple matter of these three characters. These changes becomes the encoding routine encapsulated in a function:
create or replace function mimeheader_encode( p_str varchar2 , p_charset varchar2 := 'UTF-8') return varchar2 is l_str varchar2(2000); begin l_str:=utl_raw.cast_to_varchar2(utl_encode.quoted_printable_encode(utl_raw.cast_to_raw(p_str))); l_str:=replace(l_str,'='||chr(13)||chr(10),''); --unfold the data l_str:=replace(l_str,'?','=3f'); --quote question marks l_str:=replace(l_str,' ','=20'); --quote spaces l_str:='=?'||p_charset||'?Q?'||l_str||'?='; -- add prefix and suffix return l_str; end; /
-
How to insert special characters when I hit e-mail or Facebook?
How to insert special characters when I hit e-mail or Facebook?
See also:
-
Problem of L50 - B satellite with special characters in country
I recently bought the laptop SATELLITE L50 - B - 17 c and have a problem with special characters from countries in windows 7.
In Polish, key key programmer combination right alt and the keys 'z', 'x', and 'c' should give the Polish special characters.
Unfortunately this does not work for these three keys, however works other keys in Polish characters as 'l', 'n', 'a', a ' or 'e '. I suspect that this may be linked to the special key Fn,.
However turning or disable in the BIOS did not help. Maybe there should be a driver of special keyboard for windows 7, but I have not found it :(
{quote} I recently bought the laptop SATELLITE L50 - B - 17 c and have a problem with special characters from countries in windows 7. {quote}
The laptop has been presintalled and configured with the Win 8.1 System.
Have you noticed this problem with installation of Win 7 8.1 or after the victory?If you have an external USB keyboard, I recommend you to check if the same problem would appear using the USB keyboard. In case the external USB keyboard would work correctly, the problem could be related to a defective internal keyboard
-
Potential problem of keyboard - special characters
Hello!
I recently encountered a problem, and it is reproducible. When you type in Chrome on my Macbook Pro 13 inch Yosemite running, if I try to type a special character (for example, an 'e' with an accent), the keyboard becomes unresponsive. If I refresh the page, it still fails. The only way to make sensitive again is to close the browser and reopen it, but that does not make special characters work. Any ideas? I'm under 47.0.2526.111 (64 - bit) Chrome Version, if this is useful. Thank you!
You have this problem with any app Apple, such as Safari, Mail, TextEdit, Pages, messages, Notes?
-
SLM2048 - problems of password with special characters
Hi all
We´ve got a SLM2048 in use (more updated FW) and I wanted to ask our new standards of password on this switch. So I changed the password for the admin user and used special characters, that were = &! = and clicked on update and save the changes. Now, I know that I should use alphanumeric characters only, but why are there no routine that checks the IPL for compliance before writing it on the switch.
Problem now is that I'm unable to open a session and Don t want to do a hard reset, because the pattern would be lost. I know it should be a user admin rescue, but there is none. What can I do now? Any chance that a cisco engineer could get in touch with me to debug the password entered in the laboratory and then, who could tell me what was recorded in ROM or how I can connect again?
Thank you
Philippe
Hello
I will ask our PM on a routine that checks for characters and whether or not they are acceptable for the system. We should also make this more clear in the Administrator's guide.
Just thinking out loud here... If she had the character, I wonder if he he replaced by a space, stars or a different character. Have you tried with spaces where special characters have been?
HTH,
Andrew Lissitz
-
Problems with special characters with Apex5
Hello together,
I hope, I'm right on this forum with this problem, I have found no other best match.
I have a single database called apex12D on 12.1.0.2 it's my database of the 5 Apex develompent. Apex 5.0.2 is installed, also the German language of Apex. The OS is Oracle Linux 6.
On a second machine that I have configured the Oracle Data Service remains with tomcat (installed from the repositories) and apache (also installed deposits), running on the Oracle Linux 7 operating system. This machine is my "http server" to connect to my Apex environment. Everything is very well workung, but when I go on my Apex Admin Backend all special characters in German (A, U, O,...) are displayed incorrectly. Which looks very good.
What makes that I made:
To the database (apex12D), I put all the nls paramereters the installation of the database of German letters:
SYS@apex12D> select * from nls_database_parameters; PARAMETER VALUE --------------------------------------------------------- NLS_RDBMS_VERSION 12.1.0.2.0 NLS_NCHAR_CONV_EXCP FALSE NLS_LENGTH_SEMANTICS BYTE NLS_COMP BINARY NLS_DUAL_CURRENCY ? NLS_TIMESTAMP_TZ_FORMAT DD.MM.RR HH24:MI:SSXFF TZR NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR NLS_TIMESTAMP_FORMAT DD.MM.RR HH24:MI:SSXFF NLS_TIME_FORMAT HH24:MI:SSXFF NLS_SORT GERMAN NLS_DATE_LANGUAGE GERMAN NLS_DATE_FORMAT DD.MM.RR NLS_CALENDAR GREGORIAN NLS_NUMERIC_CHARACTERS ,. NLS_NCHAR_CHARACTERSET UTF8 NLS_CHARACTERSET AL32UTF8 NLS_ISO_CURRENCY GERMANY NLS_CURRENCY ? NLS_TERRITORY GERMANY NLS_LANGUAGE GERMAN 20 rows selected.
SPFILE parameters tells a different story, I tried to put them with "change the database < parameter > = < value > scope = spfile" and if a database has restarted, nothing changes.
SYS@apex12D> show parameter nls NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ nls_calendar string GREGORIAN nls_comp string BINARY nls_currency string $ nls_date_format string DD-MON-RR nls_date_language string AMERICAN nls_dual_currency string $ nls_iso_currency string AMERICA nls_language string AMERICAN nls_length_semantics string BYTE nls_nchar_conv_excp string FALSE nls_numeric_characters string ., nls_sort string BINARY nls_territory string AMERICA nls_time_format string HH.MI.SSXFF AM nls_time_tz_format string HH.MI.SSXFF AM TZR nls_timestamp_format string DD-MON-RR HH.MI.SSXFF AM nls_timestamp_tz_format string DD-MON-RR HH.MI.SSXFF AM TZR SYS@apex12D>
Interestingly, it is that when I write a pfile to the bottom of my spfile and open it with vi, everything looks great. But OK.
apex12D.__data_transfer_cache_size=0 apex12D.__db_cache_size=2030043136 apex12D.__java_pool_size=50331648 apex12D.__large_pool_size=385875968 apex12D.__oracle_base='/usr/local/oracle'#ORACLE_BASE set from environment apex12D.__pga_aggregate_target=536870912 apex12D.__sga_target=3221225472 apex12D.__shared_io_pool_size=150994944 apex12D.__shared_pool_size=570425344 apex12D.__streams_pool_size=16777216 *.audit_file_dest='/usr/local/oracle/admin/apex12D/adump' *.audit_trail='db' *.compatible='12.1.0.2.0' *.control_files='+DATA_QUM169/APEX12D/CONTROLFILE/current.505.898513523','+FRA_QUM169/APEX12D/CONTROLFILE/current.2094.898513525' *.db_block_size=8192 *.db_create_file_dest='+DATA_QUM169' *.db_create_online_log_dest_1='+DATA_QUM169' *.db_create_online_log_dest_2='+FRA_QUM169' *.db_domain='' *.db_name='apex12D' *.db_recovery_file_dest='+FRA_QUM169' *.db_recovery_file_dest_size=10240m *.diagnostic_dest='/usr/local/oracle' *.dispatchers='(PROTOCOL=TCP) (SERVICE=apex12DXDB)' *.local_listener='LISTENER_APEX12D' *.log_archive_dest_1='LOCATION=+FRA_QUM169' *.log_archive_dest_2='LOCATION=+DATA_QUM169' *.log_archive_format='%t_%s_%r.dbf' *.nls_currency='$' *.nls_date_language='GERMAN' *.nls_dual_currency='$' *.nls_iso_currency='GERMANY' *.nls_language='GERMAN' *.nls_territory='GERMANY' *.open_cursors=300 *.pga_aggregate_target=512m *.processes=600 *.recyclebin='OFF' *.remote_login_passwordfile='EXCLUSIVE' *.sga_target=3072m *.undo_tablespace='UNDOTBS1'
The server' http' ADR is configured under the orards user, so I've put this in the .bash_profile:
NLS_LANG=GERMAN_GERMANY.AL32UTF8 export NLS_LANG
The same I did for the root, just for test user, because only root can start tomcat and apache systemctl. Apache and tomcat user/bin/nologin as Bash, so I think that their bash_profile will not if I create a.
But nothing really worked. Can anyone help please?
Thank you and best regards,
DavidHello
good German special characters are agree on the first server in ther, but not the second? I have this behavior when I set NLS_LANG = GERMAN_GERMANY. AL32UTF8 when I install the extension of the German language.
Best regards
Thomas
(Grussle aus Böblingen)
-
How to implement insert and put implement with special characters
Hi all
Scenario: I have a table and that is having e-mail column.
condition:-my e-mail column should meet under the condition when the data is inserted.
It should not allow any of the special characters ('@ ','.') and a ' @'.
Thank you
SQL> create table t 2 ( 3 email varchar2(100) not null 4 , constraint email_check check 5 ( 6 regexp_replace(email, '[@|.|[:alnum:]]') is null 7 and length(email) - length(replace(email, '@')) = 1 8 ) 9 ); Table created.
I used two conditions.
1 regular expression to see if there is any character that is NOT @ or. or Digital Alpha.
2 length check if @ is this several times.
SQL> insert into t values ('[email protected]'); 1 row created. SQL> insert into t values ('karthick.p@@abcd.com'); insert into t values ('karthick.p@@abcd.com') * ERROR at line 1: ORA-02290: check constraint (KARTHICK.EMAIL_CHECK) violated SQL> insert into t values ('[email protected]'); insert into t values ('[email protected]') * ERROR at line 1: ORA-02290: check constraint (KARTHICK.EMAIL_CHECK) violated
-
How can I insert emoji or other special characters in a document using Adobe Acrobat Pro XI? I went to special characters from the Edit menu and may not understand how to insert the special character in the document.
He's not that kind of editor. You can use the characters in a font. If you can select a font with the emoji, which fits into the case, and then enter the characters, it can work.
This suggests that you try to do TOO MUCH with a PDF file. It is a common thing, but the message should be: everything simply because you can edit a PDF file, does not mean that it is the most effective way for you to do your job.
-
problem with special characters
I have a problem with special characters. When I save a project or for export.
& yacute; figure like & Yacute;
& uacute; is shown as & Uacute;
& aacute; figure like & Aacute;
& iacute; figure as & Iacute;
& oacute; is shown as & Oacute;
& eacute; appears under the name & Eacute;
Hi Stephan,
This has been fixed in the latest version of reflow; Please install the latest version.
Thank you
-irina
Maybe you are looking for
-
I use bookmark names to keep passwords for some sites, I forget easily. IE I want to rename my favorites or bookmarks, but I can't find such a function on firefox.
-
old negatives, black and white of the 30.
I have a few large old negatives, black and white of the 30. How can I return these so that they can be viewed correctly?
-
The disk check is always performed at startup
The same disk check operation is wasting a lot of my time when I start my eMachines desktop computer. Is it possible to tell which device is causing the delay?
-
Online service of HP ink cartridge
I placed an order with the ID of the Transaction IN2091006592773 my order for cartridges 802 black amd 802 color ink on 10 September 2012 for delivery between 4-18:00, 10 September 2012. Until the date that the order is not executed bringing a hug
-
Re-installed Windows 7 Home Premium, because I had the bad hard drive.
Well, I didn't not on jelly bean or checking registry before you have the hard drive replaced. My windows product key is on bottom of laptop, but after a few wear some letters are hard to distinguish. Any ideas on what I can do to recover the key. I