Page 1 of 1

[SOLVED] ISOtoUTF

Posted: Thu Jun 14, 2007 8:51 am
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

Posted: Thu Jun 14, 2007 2:01 pm
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.

Posted: Thu Jun 14, 2007 2:04 pm
by sarris
found the answer

Code: Select all

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