DataPower

 View Only

 Encoding issues

Joacim Dahlblom's profile image
Joacim Dahlblom posted Fri April 17, 2026 06:15 AM

Hello,
We have a XML Firewall that gets a binary as input, we transform it and do some XML transformation and end witha Bse64 encoding.
Nothing strange there, works as it should.
The problem is that in ONE domain the handling of scandinavian character does not work.
For exampel TESTFÖRETAG comes out as TESTFÖRETAG.  

The same service are running in OK in many domains but not in this one.
The files/templates used are the same in all domains, I have compared configurations and I can't find anything that differs.
I have exported the XML firewall  from a working domain but does not work when imported to this one domain.

Looking at the indata in the probe after the transformation Ö is shown as HEX: c3 96. As it should.

When I look at a transaction in the probe it looks the same in a domain that works and a the domain that fails. The scandi char shows as it should.

Firmware: IDG.10.6.0.4

I'm running out of ideas here.
All help are appreciated.

Regards
Jocke D

Hermanni Pernaa's profile image
Hermanni Pernaa IBM Champion

Hi Jocke,

When you have compared configurations, have you also compared domain configs? Are you using default XML manager, User Agent, any reusable rules? 

--Hermanni

Joacim Dahlblom's profile image
Joacim Dahlblom

Hi Hermanni,

Yes I did compare User Agent and XML Manager also.

And the problem is solved!
I localized the error to a specific transformation, I did copy the content of the XSLT-file from a working domain to the one that failed, and viola! it worked like a charm. The file has not changed since I exported the service from a working domain to the one that failed. I can't understand why it suddenly works now.

/Jocke D

Hermanni Pernaa's profile image
Hermanni Pernaa IBM Champion

Ok, glad to hear you solved the issue. Perhaps during the import the file wasn't rewritten to the newest version or old version in the cache or something like that...

--Hermanni