Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Marco 13 posts 109 karma points
    Mar 13, 2015 @ 19:48
    Marco
    0

    Character encoding fails in emails

    Hi,

    I'm using Umbraco 7.1.8 with Newsletter Studio 2.1.0. When I have specials characters like ç in Curaçao in my HTML, this is translated to Curaçao in the final e-mail. On the webpages, the text is displaying correct.

    When I try to replace the ç by ĉ in the rich text editor (source editor), it's automatically converted to ç after closing the source editor. So replacing the characters there is not an option.

    I think I don't do anything special with character encoding, and don't see any settings of it. I got this behaviour on a dev-, test- and production environment. Does anybody know what can be wrong?

    Thanks!

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    Mar 13, 2015 @ 22:34
    Markus Johansson
    0

    Hi!

    Feels like a charset issue in the template? 

  • Marco 13 posts 109 karma points
    Mar 14, 2015 @ 11:30
    Marco
    100

    Both templates, the one of the page itself and the newsletter, had the following header:

    <%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>

    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
            <title><umbraco:Item field="subject" runat="server" /></title>

     

    This is not correct, HTML5 is UTF-8 by default. I tried to remove the bold line completely in the newsletter-template, and then it's working correct!

    Thanks for the help!

Please Sign in or register to post replies

Write your reply to:

Draft