Branch: Tag:

2003-04-09

2003-04-09 13:52:10 by Anders Johansson <anders@roxen.com>

Define the value of magic_roxen_automatic_charset_variable in one place. Previously it was not in sync.

Rev: server/etc/modules/Roxen.pmod:1.154
Rev: server/modules/tags/rxmltags.pike:1.425

1:   // This is a roxen pike module. Copyright © 1999 - 2001, Roxen IS.   // - // $Id: Roxen.pmod,v 1.153 2003/03/20 16:40:51 anders Exp $ + // $Id: Roxen.pmod,v 1.154 2003/04/09 13:52:10 anders Exp $      #include <roxen.h>   #include <config.h>
574:    url = add_pre_state (url, prestates);       if( String.width( url )>8 && !has_value( url, "?" ) ) -  url += "?magic_roxen_automatic_charset_variable=åäö"; +  url += "?magic_roxen_automatic_charset_variable="+ +  magic_carset_variable_value;       url = http_encode_string (url);    if (variables) {
2156:      static multiset(string) charset_warned_for = (<>);    + constant magic_carset_variable_value = "åäö&#x829f;"; +    function get_client_charset_decoder( string åäö, RequestID|void id )    //! Returns a decoder for the clients charset, given the clients    //! encoding of the string "åäö&#x829f;".