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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.