/scripts/ahub.form.attachments.js
0

SAP C4C Converts a binary value to a string using UTF-8 encoding.

Jul 02, 2017 at 08:40 AM

152

avatar image

Hello everyone ,

I met a problem :

I read my attachment.csv file want to get some information.

I convert its content to string by using "var docContent = doc.FileContent.BinaryObject.content.ToString();"

But this will translate Chinese into garbled.

Can anyone give me some advice if I want to get current Chinese from binary value

Looking froward to your reply

Thanks in advance!

convert.png (15.1 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
baoxiang lv Jul 02, 2017 at 08:58 AM
0

Okay,

This is a silly question that I should translate my CSV file into UTF-8 before I upload it

Thanks

Share
10 |10000 characters needed characters left characters exceeded
Skip to Content