Removing the special characters...
Hi All,
I have a small problem.
In one of my city table we have values like this as shown below
Moscow - My'tisch'inskaya/1-st, 21
Which contains single quotes in it. is it possible to remove the single quote using a query.
There are more than 3000 records in the table which makes very difficult to remove manually. DB is oracle 10g
thanks in advance
baskar k
Hi,
There are some many methods do that..
SQL> select replace(c1,'''','') from t4;
REPLACE(C1,'''','')
<HR>
Moscow - Mytischinskaya/1-st, 21
SQL> select translate(c1,'''',' ') from t4;
TRANSLATE(C1,'''','')
<HR>
Moscow - My tisch inskaya/1-st, 21
SQL> Update t4
2 set c1 = translate(c1,'''',' ') ;
1 row updated.
SQL> select * from t4;
C1
<HR>
Moscow - My tisch inskaya/1-st, 21
* Pavan Kumar N
Similar Messages
-
How to escape or remove the special characters in the xml element by regula
Hi members,
How to escape or remove the special characters in the xml element by regular expression in java??
For Example ,
<my:name> aaaa </my:name>
<my:age> 27 </my:age>
In the above example , i have to retrieve the value of the <my:name> Element(For examlpe -- i have to get "aaaa" from <my:name> tag)...
How to retreive this value by using DOM with XPATH in java
Thanks in AdvanceHi members,
I forget to paste my coding for the above question....This is my coding......In this display the error...... Pls reply ASAP.......
PROGRAM:
import java.io.IOException;
import java.util.Hashtable;
import java.util.Map;
import org.w3c.dom.*;
import org.xml.sax.SAXException;
import javax.xml.parsers.*;
import javax.xml.xpath.*;
public class DOMReaderForXMP {
static Document doc;
static XPath xpath;
static Object result;
static NodeList nodes;
public DOMReaderForXMP() throws ParserConfigurationException, SAXException,
IOException, XPathExpressionException {
DocumentBuilderFactory domFactory = DocumentBuilderFactory
.newInstance();
domFactory.setNamespaceAware(true);
DocumentBuilder builder = domFactory.newDocumentBuilder();
doc = builder.parse("d:\\XMP.xml");
XPathFactory factory = XPathFactory.newInstance();
xpath = factory.newXPath();
public static void perform(String path) throws Exception {
result = xpath.evaluate(path, doc, XPathConstants.NODESET);
nodes = (NodeList) result;
public void check() throws Exception {
perform("//my:name/text()");
if (!nodes.item(0).getNodeValue().equals("application/pdf")) {
System.out.println("Mathces....!");
ERROR:
Exception in thread "main" net.sf.saxon.trans.StaticError: XPath syntax error at char 9 in {/my:name}:
Prefix aas has not been declared -
How to remove the Special characters like @,#,$<,..from text field. we nedd to remove any specila char from text field .
ex:text = just#fi%cation@text
the text should be justification.hi check this ..
data:char(25) value '5#4#2#&1#&',
char1(9) .
replace all occurrences of '#' in char with 'and' .
replace all occurrences of '&' in char with 'num' .
write: char.
or use this..
data:char(25) value 'test@ing*5#4#2#&1#&',
char1(9) .
replace all occurrences of '#' in char with space .
replace all occurrences of '&' in char with space .
replace all occurrences of '@' in char with space .
replace all occurrences of '*' in char with space .
write: char.
regards,
venkat. -
How can i remove the special characters from my keyboard on my iphone3gs
how can i remove the special character from my keybord keys on my iphone 3gs
What characters are you talking about exactly and why would you want to remove any?
There is really no way to modify Apple's keyboards or add your own in iOS, but there are some apps that may provide a work around. -
Remove all the special characters using java.util.regex
Hi,
How to remove the all the special characters in a String[] using regex, i have the following:-
public class RegExpTest {
private static String removeSplCharactersForNumber(String[] number) {
String number= null;
Matcher m = null;
Pattern p = Pattern.compile("\\!\\@\\#\\$\\%\\^\\&\\*\\(\\)\\_\\+\\-\\{\\}\\|\\;\\\\\\'////\\,\\.\\?\\<\\>\\[\\]");
for (int i = 0; i < number.length; i++) {
m = p.matcher(number);
if (m.find()) {
number= m.replaceAll("");
System.out.println("Final Number is:::"+number);
return number;
public static void main(String args[]){
String[] str = {"raghav!@#$%^&*()_+"};
RegExpTest regExpTest = new RegExpTest();
regExpTest.removeSplCharactersForNumber(str);
This code is not working and m.find() is "false", here i want the output to be raghav for the entered string array, not only that it should remove all the special characters for a entered string[]. Is there a simple way to do this to remove all the special characters for a given string[]? More importantly the "spaces" (treated as a spl. character), should be removed as well. Please do provide a solution to this.
ThanksYou don't need the find(). Just use the replaceAll() on each element of the String[] i.e.
String[] values = ...
for (int i = 0; i < values.length; i++)
values[i] = p.matcher(values).replaceAll("");
}I can't understand your regex since the forum software has mangled it but you just need to add a space to the set of chars to remove. When you post code, surround it with CODE tags then the forum software won't mangle it. -
How to remove all special characters
Hi,
I want to remove all (128-223)the special characters that come in the mapping from the URL
http://www.danshort.com/ASCIImap/
128-223 ,I mean if any characters that come in between these numbered characters I have to remove in mapping.
please suggest.
thank you,
SriHI Sri
You can use the Java code as given above
Other method can be XSLT
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/source node">
<target node>
<xsl:value-of select="replace(.,'sepcial character','')"/>
</target node>
</xsl:template>
</xsl:stylesheet>
Thanks
Gaurav -
How to find the 'special characters' window
Hi,
Frequently I want to access the 'special characters' window, but when I click on the 'special characters' menu item the window does not appear. Sometimes I later find it on another screen (I use nine screens in Spaces), and sometimes can I see it on another screen using Expose, but when I go there it has disappeared. It seems a very fugitive tool, and in its way displays some cute, personality........ But I would love to know how to find it or to force it to appear on the same screen as the application from which I tried to open it!
all the best,
Jeremy HarbinsonHi,
Thanks for the reply.
I tried what you suggest - in the International section of the System Preferences there is a tab labelled 'input menu' and there is a check box (which is checked) titled 'Show input menu in Menu bar'. Unchecking that removes a national flag from the the menu bar, checking it restores that flag. So far, so good. If a click on the flag, a drop down menu appears with 'Hide character palette' as an item - clicking this changes it state to 'Show character palette' but clicking this (several times) changes nothing else that I can see,
all the best,
Jeremy -
the built-in keyboard on my macbook is not functioning right, the number keys when pushed display the special characters instead of the numbers,
the caps button doesn't work at all, the letter buttons display capitals when pushed whether the caps button is on or off, the shift keys are also out of whack!!
It seems it somehow got relocated to the "0" button because if you push and hold the zero button down the keyboard seems to operate normally, the number keys display numbers when pushed the letter keys display lower case when pushed but release the zero button and your back in the twilight zone!! Can anybody help me resolve this issue? one more thing im using an external usb keyboard right now and it seems to function properly if that helps any.You would do better in the actual macbook pro forums (this is not).
-
How do you turn off the special characters for letters?
How do you turn off the special characters for letters? Where you hold down the key and it comes up with variations of the letter. For example ï í î ò œ å ß ł û
It is very annoying when I try to play any online games. Thanks for the helpThank you so much It worked Thank you
-
Runtime mapping error due to the special characters in source XML
Hi All,
I am facing problem with the special characters coming in the source XML message. it is failing at runtime in the mapping level. when i test with the same XML message manually in graphical message mapping it works.
it looks like a UNICODE problem which we face noramlly in ABAP as well. but looking for a solution.
For your reference i am giving the data which i am recivieing and the error message below.
the problem is with the character .
Source payload error:-
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
An invalid character was found in text content. Error processing resource 'file:///C:/WINNT/profiles/CG1009/Local Settings/Temp/a173eb8_2721HTML000003'. Line 26, Position 22
Early response is appreciated.
Thank youIf your message contains special chars and the encoding is not being set, then the error is of the system which is sending the message, not XI's. The webserver should return the correct encoding.
At adapter engine, You can set the enconding for the messages you send (for example, in Soap adapter module, set XMBWS.XMLEncoding parameter with value iso-8859-1), but not for the messages you receive.
As a workaround, you could try using a Java Mapping to change the encoding manually. For that, set the encoding of the OutputFormat of the XML you'll serialize. Try the following code piece for the mapping (inside a try/catch declaration):
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder documentBuilder = factory.newDocumentBuilder();
Document input = documentBuilder.parse(in);
OutputFormat format = new OutputFormat(XML, "ISO-8859-1", false);
XMLSerializer serializer = new XMLSerializer(out, format);
serializer.serialize(input);
For that code to work, you'll need to import xercesImpl.jar and xml-apis.jar in Imported Archives of mapping objects, in Integration Repository. Both are available at http://xerces.apache.org/xerces2-j/ .
Regards,
Henrique. -
The special characters are not loading. ?
For some reason the special characters stopped appearing when I click "Special Characters" under the Edit tab. I don't understand, and unfortunately in my academic work practically a third of the characters I have to use are these. Is there another way to access them or a problem that might be responsible? I already closed and restarted.
ThanksNEVERMIND.
The window was already open but at the VERY EDGE, barely perceived, at the bottom so I had to grab it real fast before the icons popped up. Lesson learned. -
Print preview for the special characters / symbols
While displaying print preview / taking print output using QGA3 Transaction with developed Z SAPScript form specified as one of the parameters(say for example ZARMEXP), the special characters / symbols like u2018∆u2019 are displayed as u2018#u2019 in the print preview / print output . Of course similar problem had existed for Lambda Symbol u2018u03BBu2019., but it was resolved by using the font type Helve_I7. But for the symbol u2018∆u2019 we checked with almost all the fonts that were available in the system, but of not much use. Hence could you kindly provide us solution(s) that would resolve this issue.
Hi ,
Can you please check language are installed properly in sap check with basis people. then try to print it will work.
when ever language are not maintin properly , the characters or symbols are not print properly.
Regars,
Munibabu.k -
Removing the Control Characters from a text file
Hi,
I am using the java.util.regex.* package to removing the control characters from a text file. I got below programming from the java.sun site.
I am able to successfully compile the file and the when I try to run the file I got the error as
------------------------------------------------------------------------D:\Debi\datamigration>java Control
Exception in thread "main" java.util.regex.PatternSyntaxException: Illegal repet
ition
{cntrl}
at java.util.regex.Pattern.error(Pattern.java:1472)
at java.util.regex.Pattern.closure(Pattern.java:2473)
at java.util.regex.Pattern.sequence(Pattern.java:1597)
at java.util.regex.Pattern.expr(Pattern.java:1489)
at java.util.regex.Pattern.compile(Pattern.java:1257)
at java.util.regex.Pattern.<init>(Pattern.java:1013)
at java.util.regex.Pattern.compile(Pattern.java:760)
at Control.main(Control.java:24)
Please help me on this issue.
Thanks&Regards
Debi
import java.util.regex.*;
import java.io.*;
public class Control {
public static void main(String[] args)
throws Exception {
//Create a file object with the file name
//in the argument:
File fin = new File("fileName1");
File fout = new File("fileName2");
//Open and input and output stream
FileInputStream fis =
new FileInputStream(fin);
FileOutputStream fos =
new FileOutputStream(fout);
BufferedReader in = new BufferedReader(
new InputStreamReader(fis));
BufferedWriter out = new BufferedWriter(
new OutputStreamWriter(fos));
// The pattern matches control characters
Pattern p = Pattern.compile("{cntrl}");
Matcher m = p.matcher("");
String aLine = null;
while((aLine = in.readLine()) != null) {
m.reset(aLine);
//Replaces control characters with an empty
//string.
String result = m.replaceAll("");
out.write(result);
out.newLine();
in.close();
out.close();Hi,
I used the code below with the \p, but I didn't able to complie the file. It gave me an
D:\Debi\datamigration>javac Control.java
Control.java:24: illegal escape character
Pattern p = Pattern.compile("\p{cntrl}");
^
1 error
Please help me on this issue.
Thanks&Regards
Debi
// The pattern matches control characters
Pattern p = Pattern.compile("\p{cntrl}");
Matcher m = p.matcher("");
String aLine = null; -
How to identify the special characters
Hi all,
is there any way to identify all the special characters that are already in the various columns of a table,
thanks
db is on 8i
Edited by: venkata_sudheer on Apr 3, 2009 8:44 AMHello,
I don't know what's your requriment is and how do you want to handle or treat these special characters but check this function, you can pass special character and it will return back the number or you can extend this function to do the reverse (chr(37) 37=%).
CREATE OR REPLACE FUNCTION ascii_only (p_txt IN VARCHAR2)
RETURN VARCHAR2
IS
v_number NUMBER;
v_char VARCHAR2 (3 BYTE);
BEGIN
v_char := SUBSTR (p_txt, 1, 1);
v_number := (ASCII (v_char));
DBMS_OUTPUT.put_line (v_number || ':' || v_char);
RETURN v_number;
END;
/Regards -
Using devanagari script in the 'special characters' option in Pages
Using the special characters menu in Pages how can I produce double consonances? Any help would be gratefully received
That should be double consonants if you have been searching.
What keyboard are you using?
Devanāgarī Typing & Keyboard Layouts (Mac & Windows)
http://www.indiantypefoundry.com/help/technical-issues/devanagari-keyboard/
https://discussions.apple.com/thread/3548952?start=0&tstart=0
Peter
Maybe you are looking for
-
Spry menu appearing different in IE Browser
Hi there my spry menu is messing up when viewed in the Internet Explorer Browser. Everything appears fine when viewed in Firefox and Chrome, the URL is http://www.theboxinghistorian.com/ Here is a view of what it should be like and is when viewed in
-
Hello. My colleagues use Dell Laptop computers with IE7 browser. The link Is sent for a video does not work. It appears to work in Chrome. Please advise. Thank you.
-
How do I return to my inbox after following a link
I have an iPhone 4s with OS7.1.2. I would like to know how to return to my inbox after viewing a link in an email. Right now the only way I can get back to the inbox is to close out the link without having to close and then reopen my email program. I
-
Customer Transactions - Balance
Hi, Can anybody assist me to do the following. 1. How to get the customer Balance ( opening balance) 2. all the transactions in a particular period (inv, payments, adjustment) 3. for closing balance ( opening balance + sum(transaction amounts)) I kno
-
Can't add keynote files in the "add files" menu
I know where to go in itunes to add files, and I've tried the add button, AND dragging the file into the window.. but neither works. I can email them fine, but no joy with syncing through itunes (which used to work fine). Is there a config file or so