User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Jun 2004
Posts: 604
Reputation: freesoft_2000 is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 6
freesoft_2000 freesoft_2000 is offline Offline
Practically a Master Poster

Help Escaping

  #1  
Oct 6th, 2006
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

"/"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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2005
Posts: 72
Reputation: Cudmore is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 5
Cudmore's Avatar
Cudmore Cudmore is offline Offline
Junior Poster in Training

Solution Re: Escaping

  #2  
Oct 6th, 2006
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.
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?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Java Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 5:41 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC