OkTeck Posted February 22, 2010 Share Posted February 22, 2010 Hey gang, A customer of mine claims that he imported his cPanel/WHM stuff to WHMCS and when he did that all was ok... but when I try to get customer products using my API, I get non-UTF8 data... Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 19: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xE4 0x18 0xAD 0xA2 in /home/user/classes/jv/get/whmcs/class.api.php on line 113 Warning: simplexml_load_string() [function.simplexml-load-string]: <password>ä ¢qÒÌå¹–1¹Ã§2ˆ@Ëw</password> in /home/user/classes/jv/get/whmcs/class.api.php on line 113 My class issues a request to the web server, grabs the output and runs it through a PHP function called simplexml_load_string() which has ALWAYS worked nicely for me in the past... just not when issuing the "getclientsproducts" in WHMCS... Does this API parse passwords before return them to the caller? AKA, my db has this in the tblhosting password, for example: A4xcrVM4JR6kW8mRxfUskEnAagJoihGJXGsSiPTBWE0uEf03kabPCA== But the API call returns: 'ÂNqWôÒµ²Q¹WWï[. The above is non-UTF-8 and so it destroys my XML conversion. We tried adding a NEW client without imports, just straight up, and it seems to return fine: DB: by70A2Bo1F3gEbr5zB26Nr/mej7gaA5cVVomtVBs API call: tgu5K61v2R Any comments, ideas? What could be going on? Thanks! Jamie 0 Quote Link to comment Share on other sites More sharing options...
OkTeck Posted February 22, 2010 Author Share Posted February 22, 2010 Strange. I've isolated this to 4 users in the database... very very strange. I'll reset their password records from the Admin interface and see if that helps my cause. Thanks guys, any comments would be nice as to WHY this might have happened, though. Regards, Jamie 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.