•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 401,953 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,274 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 780 | Replies: 1
![]() |
•
•
Join Date: Jun 2004
Posts: 604
Reputation:
Rep Power: 6
Solved Threads: 6
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
"/"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 5: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 5: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?
![]() |
•
•
•
•
•
•
•
•
DaniWeb Java Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Mouse Over ToolTip Help (JavaScript / DHTML / AJAX)
- Perl/CGI (Checking For Data) (Computer Science and Software Design)
- $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 / 2003)
Other Threads in the Java Forum
- Previous Thread: finding IP address
- Next Thread: help with recursive method


Linear Mode