Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#150 Strange Encodings

Installation
closed
nobody
5
2012-10-11
2002-11-26
Michael Bauer
No

Hi. I just installed PHPWIKI on a virgin Red Hat 8.0
release. I don't quite know where the trouble is but
every page that comes up looks like it's encoded in
something (UTF8?) that's not being parsed correctly. I
get all squares and circles and cyrillic and other
characters.

I am trying to install 1.1.3 PHPWIKI. I set the
default language to "C" for English. My mozilla
browser is a vanilla 1.0.1. I have 4.2.2 PHP.
Apache 2.0. Here's my PHP configuration. I don't know
if I have DBM but was going to install mysql. Please help.

'./configure' '--host=i686-pc-linux-gnu'
'--build=i686-pc-linux-gnu'
'--target=i386-redhat-linux-gnu' '--program-prefix='
'--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share'
'--includedir=/usr/include' '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--prefix=/usr'
'--with-config-file-path=/etc'
'--enable-force-cgi-redirect' '--disable-debug'
'--enable-pic' '--disable-rpath'
'--enable-inline-optimization' '--with-bz2'
'--with-db3' '--with-curl' '--with-dom=/usr'
'--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr'
'--with-png-dir=/usr' '--with-gd'
'--enable-gd-native-ttf' '--with-ttf' '--with-gdbm'
'--with-gettext' '--with-ncurses' '--with-gmp'
'--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl'
'--with-png' '--with-pspell' '--with-regex=system'
'--with-xml' '--with-expat-dir=/usr' '--with-zlib'
'--with-layout=GNU' '--enable-bcmath' '--enable-exif'
'--enable-ftp' '--enable-magic-quotes'
'--enable-safe-mode' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm'
'--enable-discard-path' '--enable-track-vars'
'--enable-trans-sid' '--enable-yp' '--enable-wddx'
'--without-oci8' '--with-pear=/usr/share/pear'
'--with-imap=shared' '--with-imap-ssl'
'--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr' '--with-pgsql=shared'
'--with-snmp=shared,/usr' '--with-snmp=shared'
'--enable-ucd-snmp-hack' '--with-unixODBC=shared'
'--enable-memory-limit' '--enable-bcmath'
'--enable-shmop' '--enable-versioning'
'--enable-calendar' '--enable-dbx' '--enable-dio'
'--enable-mcal' '--with-apxs2=/usr/sbin/apxs'

Discussion

  • Steve Barker
    Steve Barker
    2002-12-19

    Logged In: YES
    user_id=671709

    Yes, I have this problem also. I notiiced that when I
    installed phpWiki on my ISP with a domain name that it ran
    fine but when I tried to run on my local machine using
    localhost then I received the strange characters.

    Steve at srbarker@fuse.net

     
  • Logged In: YES
    user_id=15226

    Hi!

    Found a solution to the problem found at:
    http://www.advogato.org/person/logic/diary.html?start=111

    Where the author gives the following solution:

    "A quick application of / / around the body of
    compress_output() in lib/Request.php was just what the
    doctor ordered."

    Hopes this helps. Worked for me!

    /pep
    pepp@hemmapc.com

     
  • Logged In: YES
    user_id=45814

    There is now (as of today, in the CVS code) an option to
    disable output compression. (COMPRESS_OUTPUT in index.php.)
    If you continue to have these problems, use that to disable
    output compression.

     
  • Logged In: YES
    user_id=698517

    This is actually because phpwiki is doubled gziped.
    Change phpwiki/lib/Request.php so that you have
    function compress_output() {}