On Tue, Jul 14, 2009 at 2:44 PM, Micha Silver<mi...@arava.co.il> wrote: > I can't find any way to straighten out two problems with querying: > > > 1- In the query window that opens when clicking on a feature, there are > the three radio button options: Excel, CSV, and PDF. But choosing any > option does nothing. In the php error log I see: > > > [14-Jul-2009 15:07:03] PHP Fatal error: Call to undefined function > json_decode() in /var/www/maps/html/plugins/export/exportquery.php on > line 53 > > > This is a CentOS 5.3 server with php 5.1.6. I tried to add something > called jsonwrapper, but that clashed with the already defined json services. > > What am I missing?
PHP 5.1 does not have this function. If you do not want to upgrade to PHP 5.2 you can modify the call in line 53 to PMCommon::parseJSON($json); I can also add this modification to SVN, I was just not thinking that lots of folks still use that old PHP versions (even Debian 4 had already PHP 5.2...) > 2- I have a layer (postgis) with text attributes in UTF-8. But when > displaying the query results, the encoding is wrong, and I get funny > characters. How can I force the query window to use UTF-8. > > I have already set: > > AddDefaultCharset UTF-8 > > in the httpd.conf file you need to specify the encoding of the layer as described in: http://svn.pmapper.net/trac/wiki/DocManual#MultilingualUserInterface at the bottom of the section. > Thanks, > > -- > > Micha > > ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users