'cannot yet handle MBCS in html_entity_decode' error on WP-DownloadManager

I am currently working on a WordPress-powered . One of its is a section. After comparing some WordPress plugins, I decided to use Lester ‘GaMerZ’ Chan‘s WP-DownloadManager.
When I use that plugin on 2.5.1, I got an . It’s something like this:

Warning: cannot yet handle MBCS in html_entity_decode()! in /home/.../wp-downloadmanager.php on line 308

Is it a bug? It seems that I got this error message because this plugin needs PHP 5 (I still use 4). Since many hosts having PHP 5-enabled (even it does not always installed as the default version), it should not be that difficult to solve this issue. All I need to do is making all .php files are treated as PHP 5 files. Okey, this is a straight forward solution: add a new line in your .htaccess . You should find it in your WordPress directory, if not, just add this line:

AddType application/x-httpd-php5 .php

And, the problem solved.
Update: Put AddType application/x-httpd-php5 .php in the first line in .htaccess file. Here is mine:

AddHandler application/x-httpd-php5 .php
# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

After that, create a new php file e.g. myphpinfo.php and include this line:


This will display about PHP version (affected by .htaccess).

10 replies on “'cannot yet handle MBCS in html_entity_decode' error on WP-DownloadManager”

I’m also using php 5. And having the same problem ???
how to solve this kind of problems ?

I have no problem at all when using the solution I write here. Currently, it works great on WordPress 2.5.1 and PHP 5.2.2. Just make sure you have the newest version of WP-DownloadManager.

I would like to ask;
Where I need to put this line in .htaccess file ?
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
I have something like that for .htaccess in wordpress folder.

THANK YOU!! I am iframing a script in my wordpress blog that was having this issue. I added the line to that folders’ htaccess and PRESTO, it worked seamlessly.
I can’t thank you enough!
Ricci