[Skip to main content](#vessel-content)

#   utf 8 to latin

##

- **[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")**
- [![mkdhost's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/31168-mkdhost "View mkdhost's Profile") Topic Author
- [ Offline](/forum/user/31168-mkdhost)

Less More

- Posts: 30
- Thank you received: 0
-
-

12 years 7 months ago -  12 years 7 months ago [\#146497](#146497) by [mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")  *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#146497 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")* was created by *[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")*

when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.

How to solve this problem?

Last edit: 12 years 7 months ago by [mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

12 years 7 months ago [\#146552](#146552) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#146552 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

You can use our encoding helper:
$encodingHelper = hikashop_get('helper.encoding');
$latin_text = $encodingHelper-&gt;change($utf8_text,'UTF-8','ISO-8859-1');

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")**
- [![mkdhost's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/31168-mkdhost "View mkdhost's Profile") Topic Author
- [ Offline](/forum/user/31168-mkdhost)

Less More

- Posts: 30
- Thank you received: 0
-
-

12 years 7 months ago [\#146570](#146570) by [mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")  Replied by *[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#146570 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

components/com_hikashop/controllers address.php in this file is address inputs or to add in payment plugin? Sugestion

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

12 years 7 months ago [\#146590](#146590) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#146590 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

If you're developing a payment plugin, I suppose that you want to convert your text before sending it to the payment gateway, so of course in your payment plugin.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")**
- [![lionel75's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11856-lionel75 "View lionel75's Profile")
- [ Offline](/forum/user/11856-lionel75)

Less More

- Posts: 846
- Thank you received: 92
-
-

12 years 7 months ago -  12 years 7 months ago [\#146602](#146602) by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")  Replied by *[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#146602 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

Hi
a- Could you explain why developer need to handle /manage utf-8 function in joomla or Hikashop extension or php ?
OS , http server , SQL database , programming language files should in 2014 all be compatible ( configure ) with utf-8 ? .
Windows OS from Microsoft don't support real utf -8 .

b- Does the helper function is document somwhere in hikashop website ?

c- python choose by default the encoding of the OS so since i use windows 8.1 64 bits i have for python
for getdefaultencoding =&gt; 'ascii'
for getdefaultlocale() =&gt; ('fr_FR','cp1252')
no standart in 2014 beetween OS .Internet try to create standart by force browser to follow standart !!

Regard's

Last edit: 12 years 7 months ago by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

12 years 7 months ago [\#146689](#146689) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#146689 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

Hi,

1. Windows supports UTF8. Why do you think it doesn't ?
You need to handle UTF8 because old software are not always compatible with it. Old email servers for example, or old payment gateways.

2. No. That's a function specific to HikaShop internals and should not have to be used for third party developers since everything should use UTF8. And if you need to use encoding conversions, PHP has functions for that (iconv, utt8_encode, etc) which are actually what is done by our helper.

3. I would recommend to tell that to python developers. They probably have a good reason for that. PHP uses UTF8 by default since PHP5.0 I think.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")**
- [![mkdhost's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/31168-mkdhost "View mkdhost's Profile") Topic Author
- [ Offline](/forum/user/31168-mkdhost)

Less More

- Posts: 30
- Thank you received: 0
-
-

12 years 7 months ago -  12 years 7 months ago [\#147005](#147005) by [mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")  Replied by *[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#147005 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

This is log from bank...
FirstName = '????'
LastName = '???????????'
PostalCode = '1000'
Address = '????? ?????? ?? 7-2/12'
City = '??????'
Country = 'Macedonia'

way give me ? when post with cyrilic?

I try with $FirstName = $encodingHelper-&gt;change($utf8_text,'UTF-8','ISO-8859-1'); but nothing.

Last edit: 12 years 7 months ago by [mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")**
- [![mkdhost's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/31168-mkdhost "View mkdhost's Profile") Topic Author
- [ Offline](/forum/user/31168-mkdhost)

Less More

- Posts: 30
- Thank you received: 0
-
-

12 years 7 months ago [\#147021](#147021) by [mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")  Replied by *[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#147021 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

this is for payment plugin.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 7 months ago [\#147097](#147097) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#147097 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

Hi,

Which payment plugin are talking about ?
Are you sure that the text is in UTF-8 and can be convert into ISO-8859-1 ?
Are you sure the other payment platform is supporting the ISO-8859-1 format ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")**
- [![mkdhost's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/31168-mkdhost "View mkdhost's Profile") Topic Author
- [ Offline](/forum/user/31168-mkdhost)

Less More

- Posts: 30
- Thank you received: 0
-
-

12 years 7 months ago -  12 years 7 months ago [\#147098](#147098) by [mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")  Replied by *[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#147098 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

i can't post parametars with utf8

from banks system send me log with FirstName='????'

FirstName='коки'
length of the field FirstName 008
What does your application field of 4 characters calculated length 8

Last edit: 12 years 7 months ago by [mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")**
- [![mkdhost's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/31168-mkdhost "View mkdhost's Profile") Topic Author
- [ Offline](/forum/user/31168-mkdhost)

Less More

- Posts: 30
- Thank you received: 0
-
-

12 years 7 months ago [\#147105](#147105) by [mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")  Replied by *[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#147105 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

i create new pament plugin for casys macedonia for hikashop.

cpay.com.mk

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 7 months ago [\#147102](#147102) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#147102 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

Hi,

I am sorry but "коки" can't be converted into ISO-8859-1.
It is just not possible.
You can try it youself: Code:

&lt;?php $a = 'коки'; echo utf8_decode($a);

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")**
- [![mkdhost's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/31168-mkdhost "View mkdhost's Profile") Topic Author
- [ Offline](/forum/user/31168-mkdhost)

Less More

- Posts: 30
- Thank you received: 0
-
-

12 years 7 months ago [\#147174](#147174) by [mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")  Replied by *[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#147174 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

req. log from bank:

all data value send to the system must to be utf8 encoding

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")**
- [![mkdhost's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/31168-mkdhost "View mkdhost's Profile") Topic Author
- [ Offline](/forum/user/31168-mkdhost)

Less More

- Posts: 30
- Thank you received: 0
-
-

12 years 7 months ago -  12 years 7 months ago [\#147175](#147175) by [mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")  Replied by *[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#147175 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

$temp=utf8_decode($AmountToPay); also for other fields.

FATAL param[FirstName].Length=4 , given length in CheckSumHeader =8 this is because before get lengt for field i must to encod to the UTF8 with utf8_decode(field)you think problem will be solved?

Last edit: 12 years 7 months ago by [mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 7 months ago [\#147178](#147178) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#147178 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

Hi,

So, I am sorry but the problem comes from your plugin.
The data is already in UTF8 and you can simply use the "strlen" function to get the string length of a UTF8 string.

I don't know how your plugin works and what it has to do but if you don't need to convert the UTF8 to latin, you just have to use it.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")**
- [![mkdhost's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/31168-mkdhost "View mkdhost's Profile") Topic Author
- [ Offline](/forum/user/31168-mkdhost)

Less More

- Posts: 30
- Thank you received: 0
-
-

12 years 7 months ago [\#147637](#147637) by [mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")  Replied by *[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#147637 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

$AmountToPay = $order-&gt;order_full_price*100;
$PayToMerchant = $method-&gt;payment_params-&gt;merchantid;
$MerchantName = 'XXXX';.......etc for $AmountCurrency ,$Details1 ,$Details2

next
$zero = '0';
$password = 'XXXXX';
//$password = $method-&gt;payment_params-&gt;encriptionkey;
$len_AmountToPay = strlen($AmountToPay);
$len_PayToMerchant = strlen($PayToMerchant);
$len_MerchantName = strlen($MerchantName); etc
next
if ($len_AmountToPay&lt;10) {
$nula_AmountToPay = '0';
}
else {
$nula_AmountToPay = '';
}
next
$parameters_value = $zero.$nula_AmountToPay.$len_AmountToPay.$zero.$nula_PayToMerchant.$len_PayToMerchant.$.....etc

$CheckSumHeader = '16AmountToPay,PayToMerchant,MerchantName,....etc'.$parameters_value;

$CheckSum = $CheckSumHeader.$AmountToPay.$PayToMerchant.$MerchantName.$AmountCurrency.$Details1.$Details2.etc;

$CheckSum_control = md5($CheckSum);

&lt;form id="hikashop_casys_form" name="hikashop_casys_form" action="&lt;?php echo $gateway_url?&gt;" method="post" &gt;
&lt;input id='AmountToPay' name='AmountToPay' value='&lt;?php echo $AmountToPay; ?&gt;' type='hidden' /&gt;
..... etc other input.

---

FATAL param[FirstName].Length=4 , given length in CheckSumHeader =8 this is because before get lengt for field i must to encod to the UTF8 with utf8_decode(field)you think problem will be solved?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

12 years 7 months ago [\#147647](#147647) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#147647 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

That error means that the way you generate the checksum is not correct based on your payment gateway API. It's not about the encoding. And since your bank said that they accept UTF8 characters, there is no need to convert the texts as they are already by default in UTF8.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")**
- [![mkdhost's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/31168-mkdhost "View mkdhost's Profile") Topic Author
- [ Offline](/forum/user/31168-mkdhost)

Less More

- Posts: 30
- Thank you received: 0
-
-

12 years 7 months ago [\#148012](#148012) by [mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")  Replied by *[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#148012 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

this code very good work for latin! but problem is when users use UTF 8

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 7 months ago [\#148013](#148013) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#148013 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

Hi,

> the checksum is not correct based on your payment gateway API

Like Nicolas said, the problem is in your payment gateway API, not in HikaShop.
Your problem is not related to HikaShop or his encoding, so please contact your payment gateway support and see with them own to solve this problem.
But we can't do anything for you because it is not an HikaShop problem.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")**
- [![mkdhost's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/31168-mkdhost "View mkdhost's Profile") Topic Author
- [ Offline](/forum/user/31168-mkdhost)

Less More

- Posts: 30
- Thank you received: 0
-
-

12 years 7 months ago [\#148179](#148179) by [mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")  Replied by *[mkdhost](/forum/user/31168-mkdhost "View mkdhost's Profile")* on topic *[utf 8 to latin](/forum/29-payment-methods/866323-utf-8-to-latin#148179 "when user input data in registration form with utf 8 how to change in latin, because when my plugin get data of inputs and redirect to the bank give me error and when users input data in latin everything is fine.  How to solve this problem?")*

he say me problem is in my code .... and that. Send me a log and say me your file not supported utf8 . :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil:

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYzMjMtdXRmLTgtdG8tbGF0aW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.497 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
