Jump to content

Non UTF-8 Data return by WHMCS API?


OkTeck

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated