Connecting Tech Pros Worldwide Forums | Help | Site Map

simple mail form

Alexander Ross
Guest
 
Posts: n/a
#1: Jul 17 '05
I am trying to create a simple mail form (i.e. five fields, the users pushes
send and using the mail function I get an email with their input values).
The problem is that some people will be filling out the form in Hebrew. When
someone fills out the form in Hebrew, I get an email with junk:

סT.רT "ת.ת & "Tס~.רT" Tour dates: 22,5,02 to 22,6,03 א .
ר.צTם ~T.o zע TTY .zT.-" '. עס.ק '"'רTם
ר'Tם - >z. >Y T>.o o"T.ת ש-" T"T" zT.-"
'zT .!

I have the Hebrew language stuff installed on my (winXP) machine and it
works fine in Word, Dreamweaver, IE, etc... Any thoughts?

Alex



Pedro Graca
Guest
 
Posts: n/a
#2: Jul 17 '05

re: simple mail form


Alexander Ross wrote:[color=blue]
> The problem is that some people will be filling out the form in Hebrew. When
> someone fills out the form in Hebrew, I get an email with junk:
>
> סT.רT "ת.ת & "Tס~.רT" Tour dates: 22,5,02 to 22,6,03 א .
> ר.צTם ~T.o zע TTY .zT.-" '. עס.ק '"'רTם
> ר'Tם - >z. >Y T>.o o"T.ת ש-" T"T" zT.-"
> 'zT .!
>
> I have the Hebrew language stuff installed on my (winXP) machine and it
> works fine in Word, Dreamweaver, IE, etc... Any thoughts?[/color]

You might want to limit your users to submitting a few characters sets

http://www.w3.org/TR/html4/interact/forms.html#h-17.3

<form accept-charset="utf-8,iso-8859-1,us-ascii" ...



I think the user-agent will convert hebrew to one of the above when
submitting, but I'm not sure it works.
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--
Alexander Ross
Guest
 
Posts: n/a
#3: Jul 17 '05

re: simple mail form


You're a wonderfull human being; one day people will write songs about you



"Pedro Graca" <hexkid@hotpop.com> wrote in message
news:c325d0$22vms6$2@ID-203069.news.uni-berlin.de...[color=blue]
> Alexander Ross wrote:[color=green]
> > The problem is that some people will be filling out the form in Hebrew.[/color][/color]
When[color=blue][color=green]
> > someone fills out the form in Hebrew, I get an email with junk:
> >
> > סT.רT "ת.ת & "Tס~.רT" Tour dates: 22,5,02 to 22,6,03[/color][/color]
א .[color=blue][color=green]
> > ר.צTם ~T.o zע TTY .zT.-" '. עס.ק[/color][/color]
'"'רTם[color=blue][color=green]
> > ר'Tם - >z. >Y T>.o o"T.ת ש-" T"T" zT.-"
> > 'zT .!
> >
> > I have the Hebrew language stuff installed on my (winXP) machine and it
> > works fine in Word, Dreamweaver, IE, etc... Any thoughts?[/color]
>
> You might want to limit your users to submitting a few characters sets
>
> http://www.w3.org/TR/html4/interact/forms.html#h-17.3
>
> <form accept-charset="utf-8,iso-8859-1,us-ascii" ...
>
>
>
> I think the user-agent will convert hebrew to one of the above when
> submitting, but I'm not sure it works.
> --
> --= my mail box only accepts =--
> --= Content-Type: text/plain =--
> --= Size below 10001 bytes =--[/color]


Pedro Graca
Guest
 
Posts: n/a
#4: Jul 17 '05

re: simple mail form


Alexander Ross top-posted:[color=blue]
> "Pedro Graca" <hexkid@hotpop.com> wrote in message
> news:c325d0$22vms6$2@ID-203069.news.uni-berlin.de...[/color]
[color=blue][color=green]
>> <form accept-charset="utf-8,iso-8859-1,us-ascii" ...[/color][/color]
[color=blue][color=green]
>> I think the user-agent will convert hebrew to one of the above when
>> submitting, but I'm not sure it works.[/color]
> You're a wonderfull human being; one day people will write songs about you[/color]

hehehe, thanks :-)
Seems like it worked. Nice to know that.
--
USENET would be a better place if everybody read: ** mail address **
http://www.catb.org/~esr/faqs/smart-questions.html ** is valid for **
http://www.netmeister.org/news/learn2quote2.html ** "text/plain" **
http://www.expita.com/nomime.html ** to 10K bytes **
Alexander Ross
Guest
 
Posts: n/a
#5: Jul 17 '05

re: simple mail form


FYI for future readers of this post, it was Pedro's suggestion combined with
setting the right charset in the header of the email that did the trick.


"Pedro Graca" <hexkid@hotpop.com> wrote in message
news:c32rd5$22rnpr$1@ID-203069.news.uni-berlin.de...[color=blue]
> Alexander Ross top-posted:[color=green]
> > "Pedro Graca" <hexkid@hotpop.com> wrote in message
> > news:c325d0$22vms6$2@ID-203069.news.uni-berlin.de...[/color]
>[color=green][color=darkred]
> >> <form accept-charset="utf-8,iso-8859-1,us-ascii" ...[/color][/color]
>[color=green][color=darkred]
> >> I think the user-agent will convert hebrew to one of the above when
> >> submitting, but I'm not sure it works.[/color]
> > You're a wonderfull human being; one day people will write songs about[/color][/color]
you[color=blue]
>
> hehehe, thanks :-)
> Seems like it worked. Nice to know that.
> --
> USENET would be a better place if everybody read: ** mail address **
> http://www.catb.org/~esr/faqs/smart-questions.html ** is valid for **
> http://www.netmeister.org/news/learn2quote2.html ** "text/plain" **
> http://www.expita.com/nomime.html ** to 10K bytes **[/color]


Closed Thread


Similar PHP bytes