473,320 Members | 1,921 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,320 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 4072
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.