Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
htaccess and utf-8
#1
hello,



i found this code in my htaccess :

RewriteEngine on
AddDefaultCharset UTF-8
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9-]+)/?$ index.php?id=$1 [L]


I dont know from where this is.
can anyone tell me if this is a problem with the contact form v1.7 ?

i deletedt AddDefaultCharset UTF-8
because i got error letters "Ä" and "Ö" from the mailer.

but after some time the contact form did not work anymore.

the provider told me that all is ok on his server.

please help

thanks.
Reply
#2
Your HTACCESS has nothing to do with the emails being send or not. It only exists so you can turn on Fancy URLs.

Also, I find it odd that you had to turn of UTF-8, as it’s one the encodings that understands most characters you’ll ever need.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#3
i mean the emails in the contact form,
i get bad letters for
Reply
#4
i mean the emails in the contact form,
i get bad letters for "ä" "ü" etc.....
so i changed the settings.
after i changed i get no email again.
the settings in your htaccess mjust be changed to your dirs
not to all dirs on the server.
PS:
your site here is very slow and ist is difficult to write
and there is some bad traffic with buysellads.com
for what is that ?
it makes every simple site very slow.!
Reply
#5
why dont you answer ?
why did i get bad letters with this htaccess file on root dir?
Reply
#6
simple123 Wrote:Your site here is very slow and it is difficult to write.
What do you mean, difficult to write?
simple123 Wrote:And there is some bad traffic with buysellads.com, for what is that?
Bad traffic? What do you mean?
simple123 Wrote:It makes every simple site very slow!
All the ads that I’m seeing here on the forum are loaded within 400ms.
Also, how is it making every simple site slow? I believe we only have adds here on the forum and if you install GetSimple on your own server it doesn’t come with any ads at all.
simple123 Wrote:Why don’t you answer?
I can’t answer, I haven’t seen this problem before and I don’t know how one could solve it. Have you tried the contact form plugin instead of the standard GetSimple contact form? Or updating GetSimple? (Version 1.7 is very insecure.)
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#7
as i was some tijme ago on your site it was very slow.
now its ok.

but you dont answer my question.

why do you overwrite all dirs in your htaccess?
it should only do it wth your dir.
or?

2.
in dont testet the new contact form
utft 8 is not a problem of the form?
i think so....
wehn i get the email of the form the
Reply
#8
Hello,
surely your server has not utf8 encoding by default. I did not know much about this, but I resolved something like it, doing a changes in admin/inc/contactform.php, by example:

change the line:
$cdata = $thislog->addChild('from');
by this:
$cdata->addCData(utf8_encode($from));

change the line:
$cdata = $thislog->addChild('subject');
by
$cdata->addCData(utf8_encode($subject));

Change the line:
foreach ( $temp as $key => $value ) {
$body .= ucfirst($key) .": ". $value ."<br />";
$cdata = $thislog->addChild(clean_url($key));
$cdata->addCData($value);
}

by
foreach ( $temp as $key => $value ) {
$body .= ucfirst($key) .": ". $value ."<br />";
$cdata = $thislog->addChild(clean_url($key));
$cdata->addCData(utf8_encode($value));
}


For trying......


Too, change the encoding of the browser, to see if it looks good; and check what type of encoding is used.
Regards.
Reply




Users browsing this thread: 1 Guest(s)