Jump to content

Whmcs not pass data correct


ptomter

Recommended Posts

1) Whmcs = UTF-8
2) Databaese= UTF-8

When passing information from clients to custom modules its not UTF-8

Example Ø = O and Æ = AE etc.

Custom module file = UTF-8, but its the passing information from WHMCS to the custom module the letters are changed.

Link to comment
Share on other sites

  • WHMCS Developer

Data passed to the $params parameter will see all of the non-latin characters transliterated to their latin counterparts. This is done because some registrars will return errors should they receive a non-latin character. You can read some about this at https://docs.whmcs.com/Custom_Transliteration

As you have discovered, the original (non-transliterated) data is stored in the ['original'] array so you can have your registrar module access that via $params['original'] instead.

Link to comment
Share on other sites

34 minutes ago, WHMCS Nathan said:

Data passed to the $params parameter will see all of the non-latin characters transliterated to their latin counterparts. This is done because some registrars will return errors should they receive a non-latin character. You can read some about this at https://docs.whmcs.com/Custom_Transliteration

As you have discovered, the original (non-transliterated) data is stored in the ['original'] array so you can have your registrar module access that via $params['original'] instead.


Thank you Nathan for your feedback. Highly appriciate it. I knew that this where done in parts of WHMCS but didn knew that this was also done when passing information from clients to custom modules also. Been around some years so I remembered the [orginal] from a ticket many years ago .. as I cant see its a part of the documentation ?

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