in reply to Re^2: how to calculate the length for other language content in PERL?
in thread how to calculate the length for other language content in PERL?
Yes, I know that. I meant your string with all the ampersands -- those are HTML Entities. They represent those characters, but in order to get the actual characters, you need to decode that first.
This is where HTML::Entities comes in. Feed your string through decode_entities, and then do your thing with encode_guess, if needed still. The length of the output of decode_entities($title) is the string you should find the length of.
~Thomas~
"Excuse me for butting in, but I'm interrupt-driven..."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: how to calculate the length for other language content in PERL?
by vasanthgk91 (Sexton) on May 15, 2013 at 07:31 UTC | |
by thomas895 (Deacon) on May 16, 2013 at 06:38 UTC | |
by vasanthgk91 (Sexton) on May 20, 2013 at 09:38 UTC | |
by vasanthgk91 (Sexton) on May 20, 2013 at 10:42 UTC |