Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert a xstring Base64 to a decoded xstring

Former Member
0 Kudos
546

Hello,

I our system we are currently deploying an e-mail system using SAPConnect and our system is configured in codepage latin-1. In latin-1 the euro-sign does not exists however and e-mails containing the euro-sign are translated to a #-sign. We are currently looking into a unicode conversion for our system, but this might take to long...

Now I have done some debugging on incoming e-mails and found the incoming stream in format XSTRING. Now I suspect that the euro-sign might still be correctly represented in the HEX data. And I thought that I was maybe able to convert the HEX-code for the euro-sign to the letters EUR. Unfortunately the e-mail body is encoded in Base64. Now I have found tools to decode the string to a new readable string but that the sign gets converted to.

My requirement would be to decode the XSTRING Base64 data to a new XSTRING with decoded Base64 data. Is this even possible?

An other thought was that the euro-sign might be intact on the database table SOC3 where the body is stored. But the only way to read the table is with the import statement but this also does an automated conversion to a normal string making the euro-sign a #-sign.

Any thoughts on this problem? Thx!

1 REPLY 1

Former Member
0 Kudos
84

We added a enhancement to replace the HEX euro sign to the characters EUR