[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>
<html lang="en">
<head>
<meta charset="utf-8" />
….
<form action="http://localhost:8888/Backyard_v4/projects/edit" method="post" accept-charset="utf-8" enctype="multipart/form-data">
<input type="text" name="title" value="projecttest" />
<input type="submit" value="submit">
</form>
-- 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"