To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > Coding

Coding Help with PHP coding

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-15-2006, 06:56 PM   #1
ppowell
Senior Member
 
Join Date: Apr 2002
Posts: 1,097
undefined function mb_convert_encoding() in PHP 4.3.8?

PHP Code:
print_r("UPDATE student SET uuid = concat(UUID(), '" . mb_convert_encoding('_' . randstring(16), 'UTF-8', 'auto') . "') WHERE uuid IS NULL OR uuid != '' LIMIT 1<P>");
produces

Quote:
Fatal error: Call to undefined function: mb_convert_encoding() in blah.php on line 1
Where line 1 is the print_r()

I'm using PHP 4.3.8, what on earth?!

Thanx
Phil
ppowell is offline   Reply With Quote
Old 03-15-2006, 07:08 PM   #2
samudasu
Senior Member
 
Join Date: May 2001
Posts: 256
Are you sure multi byte string functions are enabled in your server? They're not configured in by default. It doesn't appear that they are, that's why you're getting an undefined function error.
samudasu is offline   Reply With Quote
Old 03-15-2006, 07:10 PM   #3
bogu
I code 4 beer ...
 
bogu's Avatar
 
Join Date: Nov 2002
Location: Romania
Posts: 1,743
Hi hi hi, u find the solution for your other problem and now u get another probleme...

I think today is not such a good day for coding, for u ...

I run that line on my server and I'm using PHP 4.3.11 and it worked, I think that version of PHP is bugged...
__________________
/**
* The answer is so obvious, duh!
* It's like, whatever ...
*
* If your problem has been solved, PLEASE click the RESOLVED LINK under "Thread Tools"
*/
bogu is offline   Reply With Quote
Old 03-15-2006, 07:16 PM   #4
ppowell
Senior Member
 
Join Date: Apr 2002
Posts: 1,097
Quote:
Originally Posted by samudasu
Are you sure multi byte string functions are enabled in your server? They're not configured in by default. It doesn't appear that they are, that's why you're getting an undefined function error.
IS there an alternative then? I tried utf8_encode() but that also fails to encode into UTF-8 encoding.

My MySQL query continues to fail because it still thinks the string is latin_1 even though I'm converting it to UTF-8

Phil
ppowell is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 01:24 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.