I'm using Mojo::DOM to modify HTML text in the bodies of emails. In some
emails, the encoding of the email may be a reduced character set, but
with HTML entities within it that are for extended characters outside
the email body's encoding.

The problem I have is that Mojo::DOM decodes these extended characters,
and when I insert the content back into the email, the body of the
message now has extended characters outside of its encoding.

I have solved this by using:

encode_entities($dom, '^\n\x20-\x7e')

before inserting the HTML back into the email, but I'm not convinced
this is the best way and I'm worried I may have broken something else.

Instead, is there a way of stopping Mojo::DOM decoding the HTML entities
in the first place?

Thanks,

Andy


-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to