[play 1.2.4] i18n - Encoded HTML umlauts in text emails

24 views
Skip to first unread message

Sven Kubiak

unread,
Jun 10, 2012, 3:00:28 AM6/10/12
to pla...@googlegroups.com
Hey everyone,

I have an internationalized app with messages.de and messages.en. In the translation files I have umlauts for the german translations encoded to html Entites (e.g. ü = ü). The Entites are shown correctly in the rendered HTML-Page. However, in text email where I call the i18n Messages tags (e.g. &{'my.key'}) the Entities are shown ü. I tried to user .raw() in the email templates, but it did not work. Any recommendations on how to solve this?

green

unread,
Jun 10, 2012, 3:25:03 AM6/10/12
to pla...@googlegroups.com
I think this is not a Play relevant at all. in your browser "ü" will be interpreted and displayed as "ü", that's per HTML standard. However in your text email, no such thing will happen. You can either type in " ü " in the message files or create a JavaExtensions to translate  "ü" to "ü" manually.

On Sun, Jun 10, 2012 at 5:00 PM, Sven Kubiak <svenk...@googlemail.com> wrote:
Hey everyone,

I have an internationalized app with messages.de and messages.en. In the translation files I have umlauts for the german translations encoded to html Entites (e.g. ü = &uuml;). The Entites are shown correctly in the rendered HTML-Page. However, in text email where I call the i18n Messages tags (e.g. &{'my.key'}) the Entities are shown &uuml;. I tried to user .raw() in the email templates, but it did not work. Any recommendations on how to solve this?

--
You received this message because you are subscribed to the Google Groups "playone" group.
To view this discussion on the web visit https://groups.google.com/d/msg/playone/-/Y8V_1Fk5AcYJ.
To post to this group, send email to pla...@googlegroups.com.
To unsubscribe from this group, send email to playone+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/playone?hl=en.

Sven Kubiak

unread,
Jun 10, 2012, 6:03:16 AM6/10/12
to pla...@googlegroups.com
Thanks, you pointed me to the right direction. I added a JavaExtension which returns StringEscapeUtils.unescapeHtml(string);
To unsubscribe from this group, send email to playone+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages