Re: [PHP] UTF-8/FormMail headaches

2002-05-22 Thread Peter Johansson
On Wed, 22 May 2002, Miguel Cruz wrote: > For detection of encoding, perhaps you could include a hidden field with > some shibboleth characters. Research how they are transformed by various > encodings, and then just look at them to figure out what for that the rest > of the data is in. Yes,

[PHP] UTF-8/FormMail headaches

2002-05-22 Thread Peter Johansson
Hi all, I've got a problem with character encoding in combination with a FormMail-script (coded in PHP). Everything works fine as long as I stick to ISO-8859-1 as charset, but when I call the script from pages that use UTF-8 as encoding, special characters (e.g. those special chars with dots and

RE: [PHP] format output from exe()

2001-12-05 Thread Peter Johansson M (PAC)
Daniel Masur wrote: > how can i format the output from: > > $who = passthru(system(who)); > echo $who; > > it doesnt put breakes behind each line, so all the stuff iss > just one line till the browsers to short... Try this: echo "$who"; Or substitute those newlines with the equivalent html-l