Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Quick decode_entities Question

by davido (Archbishop)
on Jun 13, 2011 at 19:11 UTC ( #909427=note: print w/replies, xml ) Need Help??

in reply to Quick decode_entities Question

What you have typed in there actually doesn't produce foo   bar? Is that the actual code that replicates the problem? Because it doesn't cause me any trouble at all, assuming I use HTML::Entities;

Similarly, say decode_entities( encode_entities( 'this and that' ) ); produces exactly 'this and that' for me.

Is it possible that in reducing the example to minimal code you eliminated the problem without realizing it? Because I can't duplicate it with that code.

If the above code is giving you trouble I think we're going to need to know a little more about the rest of the neighborhood. That snippet cannot fail all by itself. What modules and pragmas are in use? Is there a character-set mismatch?


Replies are listed 'Best First'.
Re^2: Quick decode_entities Question
by Anonymous Monk on Nov 29, 2012 at 15:28 UTC
    for me encode is working but decode is giving same error :( !!!
      the problem is on line 42, naturally

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://909427]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2018-06-24 03:55 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.