in reply to Re: character encoding ambiguities when performing regexps with html entities
in thread character encoding ambiguities when performing regexps with html entities

You don't have to escape the \\ if you don't put it into ".."'quotes (except \'),

But there's no harm in doing so. In fact, I always escape \ in single quotes to avoid accidently doing

$path = '\\server\share'; # XXX WRONG

Your changes produces no difference whatsoever.

Replies are listed 'Best First'.
Re^3: character encoding ambiguities when performing regexps with html entities
by mwah (Hermit) on Sep 24, 2007 at 18:14 UTC
    ikegami: $path = '\\server\share'; # XXX WRONG

    correct, I'd better written \\ and \' *can*
    be escaped in single quotes.
    BTW, I'd rather guess the problem the OP has
    comes entirely from UTF-x to ISO-y-z (or sth. else)
    conversion (but he did't hint to this or gave input data)

    Regards
    mwa