By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,853 Members | 2,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,853 IT Pros & Developers. It's quick & easy.

email, text files and accents

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On 19 Nov 2003 15:28:12 -0800, me**@corys.fr (chepiok) wrote:
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
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
- the right header that i should give to the mail commande


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

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 17 '05 #2

P: n/a
Andy Hassall <an**@andyh.co.uk> wrote:
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


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 :

"
Jul 17 '05 #3

P: n/a
Hello,

On 11/19/2003 09:28 PM, chepiok wrote:
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


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:

http://www.phpclasses.org/mimemessage

--

Regards,
Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/

Jul 17 '05 #4

P: n/a
On Thu, 20 Nov 2003 00:57:48 +0100, me**@corys.fr (Stéphane Mégy) wrote:
Andy Hassall <an**@andyh.co.uk> wrote:
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


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 :

"


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

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 17 '05 #5

P: n/a
Yes sorry, your informations are ok. It works now. Thanks
Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.