Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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?


Dave


Comment on Re: Quick decode_entities Question
Select or Download Code
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://909427]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-09-21 05:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (166 votes), past polls