473,246 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,246 software developers and data experts.

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
Jul 17 '05 #1
5 4064
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
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
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
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
Yes sorry, your informations are ok. It works now. Thanks
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: c w | last post by:
Can anyone point me in the right direction? Using Oracle 9i, Pro*C and Excel. I am trying to print french accents from the Oracle DB using Pro*C to extract the necessary info and sent the result...
0
by: David Lambert | last post by:
Hi, I have a text reader that is parsing a file, I have a number of lines with accents eg. "Herr Dietman Löflers (CEO)" my text reader returns: "Herr Dietman Lflers (CEO)", it drops all the...
3
by: Cherif Diallo | last post by:
Hi I have a trivial question for the experts. I would lilke to read be able to read a text file that could contain french characters with accents. I'm opening the file with the...
0
by: Chris Leffer | last post by:
Hi. I am having problems to use HtmlEncode with strings that use accents. My page uses some expressions like that: <%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "Name").Trim) %> ...
3
by: jim | last post by:
Hi, I can't gte accents in the subject and body fields of an e-mail ! This is my code : document.location.href = 'mailto:webmaster@mysite.com?subject=the subject is éléphant&body=elephant is...
0
by: Johnny Jörgensen | last post by:
Has anyone got a good idea as to how I can systematically remove accents from characters in a string? I.e. I want to do a function that can change "Ségolène Royal" (just to take a current...
5
by: Amy L. | last post by:
I am at an absolute loss on what is going on here. I have a text file with some Spanish writing. Some of the characters have accents. I have not found anyway to read this text file and echo the...
1
by: theduffman | last post by:
Hi, I'm trying to write code to update nightly some NHL stats. Everything works, except for names with an accent, e.g. José Théodore. This won't generate a match no matter what I try. I've edited...
2
by: LittleLeopard | last post by:
Hi, I hope somebody can help me. I’m working on this website English/Portuguese and for example on this page http://www.goulartfilmes.com/en//IvyGoulart/tabid/54/Default.aspx we can see the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.