<p>The problem was in count of characters encoded in tx. C++ code allocate memory depending of count variable in tx. 
This commit solve the problem: <a href="https://github.com/stellar/js-xdr/pull/4/commits/119a8c26f71de8568d88cee1a94cb33074797859" rel="nofollow">https://github.com/stellar/js-xdr/pull/4/commits/119a8c26f71de8568d88cee1a94cb33074797859</a></p>

CC BY-SA 3.0
2016-04-27T09:54:27.870Z
2016-04-27T10:05:04.197Z
2016-04-27T10:05:04.197Z
DmRomantsov
<p>We are developing the open government auctions system on “Stellar” platform.  We forked Stellar and run our own network. We’ve added Lot creation transactions, auction participation, bids etc. There is encoding problem. We tried this solution:  <a href="https://github.com/stellar/js-stellar-base/issues/60" rel="nofollow">https://github.com/stellar/js-stellar-base/issues/60</a> But during the debug process we’ve find out that Stellar-core can’t process the data sent by js-xdr library in base64 (UTF-8) format. We’ve looked at the C++ source code but haven’t found the way to fix that.</p>

<p>Error example: 
{\"exception\"=>\"Non-zero padding bytes encountered\"}"</p>

<p>Some help and/or advice on this issue will be much appreciated.</p>

<p>All source are available here: <a href="http://www.eauction.idf.solutions/" rel="nofollow">http://www.eauction.idf.solutions/</a></p>

CC BY-SA 3.0
2016-04-26T07:31:28.727Z
When you say "on Stellar platform", do you mean the software or the network? That is, are you expecting to need no code changes or have your code changes accepted by the network? Are are you writing your own software (based on Stellar's software) to run your own network?
David Schwartz
CC BY-SA 3.0
2016-04-26T10:35:11.010Z
Yes, we forked Stellar and run our own network. All source are available here: http://www.eauction.idf.solutions .
DmRomantsov
CC BY-SA 3.0
2016-04-26T21:16:03.120Z
Can you post the xdr blob that is causing the issue?
CryptoPrincess
CC BY-SA 3.0
2016-04-27T10:04:38.430Z
Thank you for answer. Our mistake. 
This commit solve the problem: https://github.com/stellar/js-xdr/pull/4/commits/119a8c26f71de8568d88cee1a94cb33074797859
DmRomantsov
<stellar>
Stellar UTF-8 Support
DmRomantsov
# Stellar UTF-8 Support

(Asked by: username_0 on 2016-04-25)

We are developing the open government auctions system on “Stellar” platform. We forked Stellar and run our own network. We’ve added Lot creation transactions, auction participation, bids etc. There is encoding problem. We tried this solution: <https://github.com/stellar/js-stellar-base/issues/60> But during the debug process we’ve find out that Stellar-core can’t process the data sent by js-xdr library in base64 (UTF-8) format. We’ve looked at the C++ source code but haven’t found the way to fix that.

Error example:
{\"exception\"=>\"Non-zero padding bytes encountered\"}"

Some help and/or advice on this issue will be much appreciated.

All source are available here: <http://www.eauction.idf.solutions/>

**Tags:** stellar

> **Comments:**
> **username_1**: When you say "on Stellar platform", do you mean the software or the network? That is, are you expecting to need no code changes or have your code changes accepted by the network? Are are you writing your own software (based on Stellar's software) to run your own network?  
> **username_0**: Yes, we forked Stellar and run our own network. All source are available here: http://www.eauction.idf.solutions .  
> **username_2**: Can you post the xdr blob that is causing the issue?  
> **username_0**: Thank you for answer. Our mistake.  This commit solve the problem: https://github.com/stellar/js-xdr/pull/4/commits/119a8c26f71de8568d88cee1a94cb33074797859  

---

## 1 answers

### Answer by username_0 on 2016-04-27. Score: 0 | Accepted answer

The problem was in count of characters encoded in tx. C++ code allocate memory depending of count variable in tx.
This commit solve the problem: <https://github.com/stellar/js-xdr/pull/4/commits/119a8c26f71de8568d88cee1a94cb33074797859>


---

