• Resolved terjeset

    (@terjeset)


    I collect information from my customer, then transform this into a xml structure (mail body). This mail is sent to my vendor for automatic processing.

    My vendor rejects the mail created by WordPress + Contact Form 7, and tells me the mail and the mail body got different encoding.

    How can i get control over the encoding?

    Here is a sample of the xml in the mail body:

    <?xml version="1.0" encoding="ISO‐8859‐1" ?>
    <MailorderMessage version="1.0">
    <Buyer>446</Buyer>
    <OrderType>NRM</OrderType>

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is actually depending on your WordPress configuration, but usually mail encoding is UTF-8. So, if the encoding of the XML is ISO-8859-1 (Latin-1) as seen in your post, it can be called different encoding. How about just changing encoding="ISO-8859-1" to encoding="UTF-8"?

    Thread Starter terjeset

    (@terjeset)

    As simple as that, UTF-8 instead of ISO-8859-1.

    Thanks again, Takayuki.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Mail and mail content – different encoding’ is closed to new replies.