Welcome Guest, Not a member yet? Register   Sign In
Special characters / php
#1

[eluser]davedriesmans[/eluser]
when i submitted a with a special character i got an empty $_POST value for that field.
now i found out it works online and on MAMP php 5.2.17 but NOT on MAMP with php 5.3.5

below are my settings, anything else i can check?

-- config/config.php

Code:
$config['charset'] = 'UTF-8';
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';

-- config/database.php

Code:
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_unicode_ci';

-- html

Code:
<!DOCTYPE html>
&lt;html lang="en"&gt;

&lt;head&gt;
&lt;meta charset="utf-8" /&gt;

….
&lt;form action="http://localhost:8888/Backyard_v4/projects/edit" method="post" accept-charset="utf-8" enctype="multipart/form-data"&gt;
   &lt;input type="text" name="title" value="projecttest"  /&gt;
   &lt;input type="submit" value="submit"&gt;
&lt;/form&gt;

-- database

projects - Collation : utf8_unicode_ci

-- files saved as utf-8 via phpstorm

-- php ini for both 5.2 and 5.3
Code:
; PHP's built-in default is text/html
default_mimetype = "text/html"
;default_charset = "iso-8859-1"




Theme © iAndrew 2016 - Forum software by © MyBB