I'm trying to pull data from Honeycode table using AWS SDK command: queryTableRows. I'm doing this in Lambda. Rows that has correct encoding in Honeycode table (e.g. "Doliny Miętusiej") looses corect encoding once printed in Lambda as a string (e.g. "Doliny MiÄtusiej").
Any idea how can I assure same encoding in Honeycode table as in Lambda after queryTableRows command?
Thank you for getting in touch. I just wanted to let you know that I am talking to my engineering team about this. I will keep you updated on developments.
After a discussion with the engineering team, we may need further information.
I would like to confirm that you are using the AWS SDK with Lambda
What language are you using in lambda
We would appreciate it if you could share the code snippet where the issues are occurring. Remove any sensitive information from the code. I can reach out to you via email if necessary.
Dear Pankaj
thanks for your supprort. I'm using AWS Lambda Node.js 12.x. The lambda is deployed in eu-central-1 region. I'm developing in Cloud9 and runing function using "Run remote" (as opposite to "Run Local").
As you see above, I've tested two options for encoding string. Build in Buffor package and utf8.js (utf8 - npm) but non of thoose options works for me.
Thank you for providing all the relevant information. The Eng team has run lambda directly from the lambda interface and found no issues.
Could you please test the lambda function directly from lambda interface to see if it works for you? If that is the case, we can rule out that the problem is not with the Lambda calling Honeycode, but with any other component in the flow.
Hi Pankaj,
sorry for late response. As per your advice I've tested running from AWS console --> Lambda and it actually works:
When I did exactly the same from Cloud9 --> Run remote I got below:
So it looks there is something wrong with setting up Cloud9 to work with Honeycode (I also had issue that I was not able to run it locally).
Nevertheless, for me ability to run it from AWS console solves the issue. Many thanks for you and your team !