[SOLVED] ISOtoUTF

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sarris
Forum Contributor
Posts: 137
Joined: Mon Dec 04, 2006 2:44 pm

[SOLVED] ISOtoUTF

Post by sarris »

Hi there, i was given s ascript from company in order to acces a web service of them...
at the line

Code: Select all

$res = $msclient->Connect('<ConParams user="'.ISOtoUTF($username).'" pass="'.ISOtoUTF($password).'" enckey=""/>');
i get error about the ISOtoUTF function.
Does anyone know where can i find the prototype of this function to embedd it in the script and make things work?

thanks
Last edited by sarris on Thu Jun 14, 2007 2:04 pm, edited 1 time in total.
Begby
Forum Regular
Posts: 575
Joined: Wed Dec 13, 2006 10:28 am

Post by Begby »

There are no prototypes in PHP like in C or C++.

Secondly, the error is because that function is not defined in your code. You will need to either find the file where that function is defined and include() it before you try to use it, write the function yourself, or look around the internets for a snippet that does what you want.
sarris
Forum Contributor
Posts: 137
Joined: Mon Dec 04, 2006 2:44 pm

Post by sarris »

found the answer

Code: Select all

function ISOtoUTF($s) {
  return utf8_encode($s);
}
thanks
Post Reply