email, text files and accents

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • chepiok

    email, text files and accents

    I'd like to send email containing accents (french one) using PHP
    command mail(). The content of these emails are store in text files.

    I'de like to know :

    - text file format (encoding, with ASCII code ?...) that will contains
    my templates with some potential accents

    - the right header that i should give to the mail commande

    Thanks for all
  • Andy Hassall

    #2
    Re: email, text files and accents

    On 19 Nov 2003 15:28:12 -0800, megy@corys.fr (chepiok) wrote:
    [color=blue]
    >I'd like to send email containing accents (french one) using PHP
    >command mail(). The content of these emails are store in text files.
    >
    >I'de like to know :
    >
    >- text file format (encoding, with ASCII code ?...) that will contains
    >my templates with some potential accents[/color]

    ASCII doesn't have characters with accents. A character set that does include
    Western European characters would be ISO-8859-15.


    [color=blue]
    >- the right header that i should give to the mail commande[/color]

    Content-type: text/plain; charset=iso-8859-15

    --
    Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
    Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

    Comment

    • Stéphane Mégy

      #3
      Re: email, text files and accents

      Andy Hassall <andy@andyh.co. uk> wrote:
      [color=blue]
      > ASCII doesn't have characters with accents. A character set that does include
      > Western European characters would be ISO-8859-15.
      >
      > http://en.wikipedia.org/wiki/ISO_8859-15[/color]

      When I open my text file and set the encoding to "Wester nISO Latin 9"
      (that should be ISO-8859-15 according to
      http://en.wikipedia.org/wiki/ISO_8859-15) and try to save, He told me :

      "

      Comment

      • Manuel Lemos

        #4
        Re: email, text files and accents

        Hello,

        On 11/19/2003 09:28 PM, chepiok wrote:[color=blue]
        > I'd like to send email containing accents (french one) using PHP
        > command mail(). The content of these emails are store in text files.
        >
        > I'de like to know :
        >
        > - text file format (encoding, with ASCII code ?...) that will contains
        > my templates with some potential accents
        >
        > - the right header that i should give to the mail commande[/color]

        It is not that simple. You need to use quoted-printable in text with
        accents in the body and q-encoding in the headers.

        You may want to try this class that simplifies that task and more:



        --

        Regards,
        Manuel Lemos

        Free ready to use OOP components written in PHP
        Free PHP Classes and Objects 2026 Versions with PHP Example Scripts, PHP Tutorials, Download PHP Scripts, PHP articles, Remote PHP Jobs, Hire PHP Developers, PHP Book Reviews, PHP Language OOP Materials


        Comment

        • Andy Hassall

          #5
          Re: email, text files and accents

          On Thu, 20 Nov 2003 00:57:48 +0100, megy@corys.fr (Stéphane Mégy) wrote:
          [color=blue]
          >Andy Hassall <andy@andyh.co. uk> wrote:
          >[color=green]
          >> ASCII doesn't have characters with accents. A character set that does include
          >> Western European characters would be ISO-8859-15.
          >>
          >> http://en.wikipedia.org/wiki/ISO_8859-15[/color]
          >
          >When I open my text file and set the encoding to "Wester nISO Latin 9"
          >(that should be ISO-8859-15 according to
          >http://en.wikipedia.org/wiki/ISO_8859-15) and try to save, He told me :
          >
          >"[/color]

          I think your post has got cut off... that's all that arrived.

          --
          Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
          Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

          Comment

          • Stéphane Mégy

            #6
            Re: email, text files and accents

            Yes sorry, your informations are ok. It works now. Thanks

            Comment

            Working...