View Single Post
  #2  
Old 03-28-2010, 06:49 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: JsHttpRequest.php creating error

Hey Tim, I looked one more time on this issue for you and it seems you are not the only one experiencing something like this.

"mb-convert-encoding" is a PHP function - http://www.php.net/manual/en/function.mb-convert-encoding.php

Also this one talks about it - http://gallery.menalto.com/node/30054

I think the function in your case would be this one from JsHttpRequest.php
Code:
function _unicodeConv($fromEnc, $toEnc, $v) { if ($this->_unicodeConvMethod == 'iconv') { return iconv($fromEnc, $toEnc, $v); } return mb_convert_encoding($v, $toEnc, $fromEnc); }

And maybe if you replace it with this will make the error disappear (or I can do it for you)

Code:
function _unicodeConv($fromEnc, $toEnc, $v) { if ($this->_unicodeConvMethod == 'iconv') { return iconv($fromEnc, $toEnc, $v); } if ($fromEnc == NULL) { return mb_convert_encoding($v, $toEnc); } else { return mb_convert_encoding($v, $toEnc, $fromEnc); } }

(posted here just in case anyone else is experiencing same problem)
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote