Avatar

German umlauts and utf8 (Bugs)

by Micha ⌂, Saturday, September 22, 2007, 08:06 (4355 days ago) @ Alex

Hi Alex,

Maybe you edited a script file and didn't save it in UTF-8 format?

There ist no file in your ZIP-archiv with is saved in UTF-8. I am useing Notepad++ and I think, this editor catch the format from the file. Notepad++ show me, that every file is ANSI.

If I add the line mysql_query('SET NAMES utf8'); on line 41:


  $connid = @mysql_connect($host, $user, $pw) or raise_error('mysql_connect',mysql_error());
  //Add by Michael Loesler - 13.09.2007
  mysql_query('SET NAMES utf8');
  @mysql_select_db($db, $connid) or raise_error('mysql_select_db',mysql_error());

and save the functionfile as utf-8, I get the following warnings:

Warning: Cannot modify header information - headers already sent by (output started at /includes/functions.inc.php:1) in /modules/bad-behavior/bad-behavior/screener.inc.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /includes/functions.inc.php:1) in /includes/main.inc.php on line 194

Warning: Cannot modify header information - headers already sent by (output started at /includes/functions.inc.php:1) in /index.php on line 156

Please, tell me, what I have to do.

regards Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences


Complete thread:

 RSS Feed of thread

powered by my little forum