Hi there,
Seems html entities are not handled, so I'm investigating a way to convert these entities to their plain text (or utf8) equivalents before sending out an email. I was playing around with a function like this:
function handle_entities($text) {
$trans_tbl = get_html_translation_table(HTML_ENTITIES);
$trans_tbl = array_flip($trans_tbl);
return strtr($text, $trans_tbl);
}
But was wondering if maybe there was a better approach.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | international.png | 13.52 KB | gisle |
Comments
Comment #1
gisleI've no idea why there was a bug report for this, and since no more information about this has appeared after more than four years, I'm going to close this.
I do not understand why Notify need to handle HTML entities. If you need to send notifications that contains non-ASCII characters, just make sure your nodes uses UTF-8 (and not HTML entities) to represent those.
Screenshot below shows how a notification in greek arrives at the recipient: