ietf-822
[Top] [All Lists]

Re: quoted strings within quoted strings

2002-02-28 10:39:08

Hi,

--On Thursday, February 28, 2002 4:33 PM +0000 Charles Lindsey
<chl(_at_)clw(_dot_)cs(_dot_)man(_dot_)ac(_dot_)uk> wrote:

| So what is the proper way to do it?
| Would it be
| 
|       sender = "\"John D. Bloggs\" <jdbloggs(_at_)example(_dot_)com>"
| 
| in which case would/should the inner \"John D. Bloggs\" then be
| interpreted as a quoted-string?
| 
| Or is it the case that there is no proper way to express this sort of
| thing?

I think you need a slightly different example to actually express this
problem. If the phrase had instead been 'John D. "Cool" Bloggs', then you
have the problem of a quoted string in a quoted string more clearly
expressed, and I think the simple solution is to reapply the quoting rules
so you end up with something like:

sender = "\"John D. \\\"Cool\\\" Bloggs" <jdbloggs(_at_)example(_dot_)com>"

-- 
Cyrus Daboo

<Prev in Thread] Current Thread [Next in Thread>