http://www.perlmonks.org?node_id=909427


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?


Dave

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