Konstiga tecken bara i Outlook. (php, formmail)|Programmering / Grafisk formgivning|Forum|Nordichardware

Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
The forums are currently locked and only available for read only access
sp_Feed sp_TopicIcon
Konstiga tecken bara i Outlook. (php, formmail)
Avatar
Conzpiro
Nu vet jag hur man gör inlägg!
Medlem
Forum Posts: 27
Member Since:
March 1, 2006
sp_UserOfflineSmall Offline
1
September 12, 2008 - 9:43 am
sp_Permalink sp_Print

Kolla koden...
Jag försår inte vad jag gör för fel. åäö funkar inte.. Jag har testat iso-8859-1 också utan reslultat.

Tacksam för hjälp...


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8" />
<title>bla bla bla</title>
<meta name="keywords" content="bla bla bla" />
<meta name="description" content="bla bla bla" />
<meta name="language" content="SE" />
<meta name="distribution" content="global" />
<meta name="robots" content="index,follow" />
<meta name="copyright" content="bla bla bla" />

<link rel="stylesheet" type="text/css" href="css/default.css" media="screen"/>
</head>
<body>
<div id="container">

<div id="content">

<h1 id="site-title">Bla bla</h1>
<p id="site-description">bla bla bla bla</p>

<div>

<?php

$kontaktperson = $_POST['kontaktperson'];
$epost = $_POST['epost'];
$telefon = $_POST['telefon'];
$month = $_POST['month'];
$day = $_POST['day'];
$tid = $_POST['tid'];
$meddelande = $_POST['meddelande'];

?>


<?php

$todayis = date("Y-d-m") ;
$attn = 'Åke Nilsson';
$subject = "Bokning: $todayis";

$meddelande = stripcslashes($meddelande);

$message = "

Kontaktperson: $kontaktperson n
E-post: $epost n
Telefon: $telefon n
Datum: $day $month n
Tid: $tid n
Meddelande: $meddelande n

";

$from = "From: $epostrn";

$mail_sent = @mail("xxx@xxx.xx", $subject, $message, $from, "Content-Type: text/plain; charset=utf-8");?>

<?php echo $mail_sent ? "JAAAAAA." : "Neeeeej. "; ?>


</div>
</div>
</div>

</body>
</html>
[/code]
NH|CryptoN
Kommer du hit ofta?
Medlem
Forum Posts: 266
Member Since:
June 28, 2007
sp_UserOfflineSmall Offline
1202942
September 13, 2008 - 11:00 am
sp_Permalink sp_Print

Pröva att spara alla filer om UTF-8. som t.ex din CSS-fil

Avatar
Snorch
Member
Medlem
Forum Posts: 8881
Member Since:
March 14, 2001
sp_UserOfflineSmall Offline
1202950
September 13, 2008 - 3:26 pm
sp_Permalink sp_Print

Provar jag filen koden ovan, med ÅÄÖ vid bla bla, så blir det bara frågetecken. Ändrar jag däremot utf-8 till iso-8859-1 fungerar det fint, konstigt att det inte fungerar för dig.

F.ö. ska väl alla tagar skrivas med små tecken för xhtml.

<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
NH|CryptoN
Kommer du hit ofta?
Medlem
Forum Posts: 266
Member Since:
June 28, 2007
sp_UserOfflineSmall Offline
1203189
September 18, 2008 - 7:45 am
sp_Permalink sp_Print

När man använder UTF-8 och länkar css-filer och andra filer till ett script så måste dessa filer sparas om UTF-8

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1030
Currently Online:
Guest(s) 250
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Andreas Galistel: 16287
Jonas Klar: 15897
ilg@dd: 10810
Nyhet: 10607
Mind: 10550
Ctrl: 10355
Gueno: 9881
Guest: 9344
Snorch: 8881
Callister: 8468
Newest Members:
PetrbonFU PetrbonFU
Karine Bembry
Dolores Mcdaniels
Anibal McLeish
Francisca Alt
Alfie Everhart
Lester Huitt
Orlando Jorgensen
Mikki Lundgren
Dakota Kozlowski
Forum Stats:
Groups: 11
Forums: 59
Topics: 146630
Posts: 1300967

 

Member Stats:
Guest Posters: 2
Members: 79425
Moderators: 0
Admins: 11
Administrators: nordicadmin, Henrik Berntsson, Anton Karmehed, Carl Holmberg, Joel Oscarsson, Mikael Linnér, Mikael Schwartz, Andreas Paulsson, Nickebjrk, Mattias Pettersson, EmxL