| | |
Escaping
![]() |
•
•
Join Date: Jun 2004
Posts: 609
Reputation:
Solved Threads: 7
Hi everyone,
I need to ask a rather silly question on escaping quotes so please bear with me for a while.
As i am using java this is what i usually do to escape quotes
It usually works but my question is that is this a platform independent way of doing it?
If not then what is the paltform independent way of doing it?
Any help is greatly appreciated
Thank You
Yours Sincerely
Richard West
I need to ask a rather silly question on escaping quotes so please bear with me for a while.
As i am using java this is what i usually do to escape quotes
Java Syntax (Toggle Plain Text)
"/"Test"/"
It usually works but my question is that is this a platform independent way of doing it?
If not then what is the paltform independent way of doing it?
Any help is greatly appreciated
Thank You
Yours Sincerely
Richard West
Last edited by freesoft_2000; Oct 6th, 2006 at 6:03 pm.
Microsoft uses "One World, One Web, One Program" as a slogan.
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
I think the proper way to escape Quotes is
"Here is some \"Text inside Quotes\"" :rolleyes:
And no. It's not platform-independent.. That would be the File Separator, which is "\" in Windows and "/" in Unix (as an example).. In Java, \ always escapes the following character.
"Here is some \"Text inside Quotes\"" :rolleyes:
And no. It's not platform-independent.. That would be the File Separator, which is "\" in Windows and "/" in Unix (as an example).. In Java, \ always escapes the following character.
Last edited by Cudmore; Oct 6th, 2006 at 6:15 pm. Reason: To add color
synchronized (theWorld) { System.out.println ("It's all mine..."); }
How many people have code in their Sigs?
How many people have code in their Sigs?
![]() |
Similar Threads
- Mouse Over ToolTip Help (JavaScript / DHTML / AJAX)
- Perl/CGI (Checking For Data) (Computer Science)
- $variable inside quotes (PHP)
- Using find in a bash shell script (Shell Scripting)
- Blank drop list (PHP)
- Referrals (Geeks' Lounge)
- Zend PHP Certification (PHP)
- MSN Messenger 6 problem! (Windows NT / 2000 / XP)
Other Threads in the Java Forum
- Previous Thread: finding IP address
- Next Thread: help with recursive method
| Thread Tools | Search this Thread |
actuate add android api applet application applications array arrays automation balls bank binary bluetooth business chat class clear client code codesnippet collections component database defaultmethod development dice digit dragging ebook eclipse equation error event formatingtextintooltipjava fractal functiontesting game givemetehcodez graphics gui health hql html hyper ide idea image infinite int integer invokingapacheantprogrammatically j2me java javame javaprojects jni jpanel julia linux list main map method methods mobile myregfun mysql netbeans nonstatic openjavafx parameter pearl php problem program project recursion repositories scanner scrollbar server set sms sort sorting spamblocker sql sqlserver state storm string sun superclass swing swt thread threads tree windows





