gameone Member Licensed User Jan 29, 2016 #1 Hi i'm using https://www.b4x.com/android/forum/t...ompatible-php-code-to-de-encrypt.52582/page-2 this library to encrypt data and send send Over HTTP using (InitializeGet) Problem happen when this data is like a chinese character then it's broken. All data unicode is "broken". I tested on local and see that library work as expect on local. (crypter or decrypted string are same) But when i got on PHP Server using PHP Code that DonManFred provide, then all Unicode thing are fucked up. (i can't see chinese character anymore) NOTE: When data is written in latin language they are no problem, it's sound like Unicode problem. Any idea ?
Hi i'm using https://www.b4x.com/android/forum/t...ompatible-php-code-to-de-encrypt.52582/page-2 this library to encrypt data and send send Over HTTP using (InitializeGet) Problem happen when this data is like a chinese character then it's broken. All data unicode is "broken". I tested on local and see that library work as expect on local. (crypter or decrypted string are same) But when i got on PHP Server using PHP Code that DonManFred provide, then all Unicode thing are fucked up. (i can't see chinese character anymore) NOTE: When data is written in latin language they are no problem, it's sound like Unicode problem. Any idea ?
Erel B4X founder Staff member Licensed User Longtime User Jan 29, 2016 #2 I'm not familiar with this library however unicode is not broken in Http or OkHttp libraries. The problem is somewhere else. My guess is that the server encoding is not UTF8. So you need to use GetString2 with the correct encoding. Upvote 0
I'm not familiar with this library however unicode is not broken in Http or OkHttp libraries. The problem is somewhere else. My guess is that the server encoding is not UTF8. So you need to use GetString2 with the correct encoding.