[Moscow.pm] Энтити в UTF - как?
Alex Povolotsky
tarkhil на over.ru
Пт Ноя 25 11:12:05 PST 2011
On 11/25/11 18:13, Alexey Shrub wrote:
> http://stackoverflow.com/questions/576095/how-can-i-decode-html-entities
>
> так?
ПОЧТИ.
Почему-то
perl -MHTML::Entities -e 'while(<>) { print
HTML::Entities::decode_entities($_); }' importcouponweb >
importcouponweb.xml
ругается на wide character in print, выдает нечто, что less показывает,
как текстовый файл, а emacs (внезапно) - как \символы, и пишет
предупреждение -
Warning (emacs): File contents detected as raw-text.
Consider adding an encoding attribute to the xml declaration,
or saving as utf-8, as mandated by the xml specification.
Я не догоняю ((
Alex
Подробная информация о списке рассылки Moscow-pm