cancel
Showing results for 
Search instead for 
Did you mean: 

CAP: CESU-8 encoding

viren_chawda
Explorer
0 Kudos
124

I'm pulling some data from an API and trying to push update it into a table (cds entity) using CAP. In general everything is working as expected. 

But when I received few records in my data that have a different language (Cantonese in my case), then I get the below error while trying to update the table.

[SqlError: fatal error: invalid CESU-8 encoding for Unicode string] {
code: 3,
sqlState: 'HY000',
level: 1,
position: 0,
query: false
}

View Entire Topic
viren_chawda
Explorer
0 Kudos

Hi Peter,

After few more tests, I found the cause of the problem. Turns out its not the language that was causing the issue. Rather there was a an emoticon "😊" somewhere in the text of the data that was received from the API.

Once it was removed the data was loaded to the table.

Thanks,

Viren 

catano
Active Participant
0 Kudos
Hi, I'm glad you made it work finally. Next time you might consider the rubber duck debugging method 😉 Best, Peter