Changeset - r37:58aca714863d
[Not reviewed]
default
0 1 0
Wolfgang Scherer (ws) - 11 years ago 2014-11-17 09:50:02
wolfgang.scherer@gmx.de
.htaccess.in: UTF-8 settings
1 file changed with 52 insertions and 1 deletions:
0 comments (0 inline, 0 general)
.htaccess.in
Show inline comments
 
@@ -18,6 +18,58 @@ order allow,deny
 
Deny from all
 
</Files>
 

	
 
# See: http://stackoverflow.com/questions/6987929/preparing-php-application-to-use-with-utf-8
 
########################################
 
# Locale settings
 
########################################
 

	
 
# See: http://php.net/manual/en/timezones.php
 
php_value date.timezone "Europe/Berlin"
 

	
 
SetEnv   LC_ALL  de_DE.UTF-8
 

	
 
########################################
 
# Set up UTF-8 encoding
 
########################################
 

	
 
AddDefaultCharset UTF-8
 
AddCharset UTF-8 .php
 

	
 
php_value default_charset "UTF-8"
 

	
 
php_value iconv.input_encoding "UTF-8"
 
php_value iconv.internal_encoding "UTF-8"
 
php_value iconv.output_encoding "UTF-8"
 

	
 
php_value mbstring.internal_encoding UTF-8
 
php_value mbstring.http_output UTF-8
 
php_value mbstring.encoding_translation On
 
php_value mbstring.func_overload 6
 

	
 
# See also php functions:
 
# mysql_set_charset
 
# mysql_client_encoding
 

	
 
# database settings
 
#CREATE DATABASE db_name
 
#   CHARACTER SET utf8
 
#   DEFAULT CHARACTER SET utf8
 
#   COLLATE utf8_general_ci
 
#   DEFAULT COLLATE utf8_general_ci
 
#   ;
 
#
 
#ALTER DATABASE db_name
 
#   CHARACTER SET utf8
 
#   DEFAULT CHARACTER SET utf8
 
#   COLLATE utf8_general_ci
 
#   DEFAULT COLLATE utf8_general_ci
 
#   ;
 

	
 
#ALTER TABLE tbl_name
 
#   DEFAULT CHARACTER SET utf8
 
#   COLLATE utf8_general_ci
 
#   ;
 

	
 
AuthUserFile @base_dir@/lib/.htpasswd
 
# AuthGroupFile .htgroup
 

	
 
@@ -25,4 +77,3 @@ AuthUserFile @base_dir@/lib/.htpasswd
 
AuthType Basic
 
AuthName "Urlaubseinstellungen"
 
require valid-user
 

	
0 comments (0 inline, 0 general)