944,117 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1203
  • Java RSS
Oct 6th, 2006
0

Escaping

Expand Post »
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

Java Syntax (Toggle Plain Text)
  1. "/"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.
Similar Threads
Reputation Points: 25
Solved Threads: 10
Practically a Master Poster
freesoft_2000 is offline Offline
623 posts
since Jun 2004
Oct 6th, 2006
0

Re: Escaping

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 6:15 pm. Reason: To add color
Reputation Points: 20
Solved Threads: 6
Junior Poster in Training
Cudmore is offline Offline
74 posts
since Nov 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: finding IP address
Next Thread in Java Forum Timeline: help with recursive method





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC