Hi, Is there a general, worked-out policy about character encodings so they stay consistent throughout a translation? By this I mean character encodings of the data in mysql, in template files. I know that the perl scripts generate "an obligatory" content-type headers to the template files before output is generated. . But the headers provide to browsers only the first part of the header, without encodings information in it, hence incomplete. Has any work been done on putting it in order? By the way, what does this mean: output_html_with_http_headers $query, $cookie, $template->output; Is the first part of the line a variable? thanks Benedict
On October 21, 2003 08:16 am, Benedykt wrote:
By the way, what does this mean: output_html_with_http_headers $query, $cookie, $template->output;
Is the first part of the line a variable? thanks Benedict
This is a perl function call, coded in a lazy manner, without scoping parentheses. It is equivalent to the clearer code: output_html_with_http_headers( $query, $cookie, $template->output ); - Erik
On 2003-10-21 16:16:46 +0100 Benedykt <kb2qzv@poczta.wp.pl> wrote:
Is there a general, worked-out policy about character encodings so they stay consistent throughout a translation? By this I mean character encodings of the data in mysql, in template files.
Apparently not. Can we just declare that "koha should be utf-8 throughout" and anything else is a bug?
By the way, what does this mean: output_html_with_http_headers $query, $cookie, $template->output; Is the first part of the line a variable? thanks
It's a function from C4::Output, I think. $query is probably a CGI object representing the request, $cookie a Cookie object to send to the browser and $template->output is probably a string containing the finished page. -- MJR/slef My Opinion Only and possibly not of any group I know. Please http://remember.to/edit_messages on lists to be sure I read http://mjr.towers.org.uk/ gopher://g.towers.org.uk/ slef@jabber.at Creative copyleft computing services via http://www.ttllp.co.uk/
participants (3)
-
Benedykt -
Erik Stainsby -
MJ Ray