cancel
Showing results for 
Search instead for 
Did you mean: 

Encoding - UTF-8 or utf-8 - Does the case matter ?

Former Member
0 Kudos

Hi ,

The xml document generated by the file adapter has the encoding as "UTF-8" in upper case.

We pass this xml as input to a Java Mapping and the resultant output document has "utf-8" in lowercase.

We are not doing any structure conversion in Java Mapping, what i mean to say is that we use the same Message Type as source & target for Java mapping. So the same document is the output , but some additional fields populated.

The difference we see is this "case". Does this matter ? If so , how can we suppress this behaviour ?

We are facing issues with XPATH formulae failing with the XML message that has "utf-8" in lowercase which is the output of Java mapping and suspect this could be the problem, Any thougths ?

Thanks

Saravana

Accepted Solutions (0)

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

The official statement is:

"The character set names may be up to 40 characters taken from the printable characters of US-ASCII. However, no distinction is made between use of upper and lower case letters."

http://www.iana.org/assignments/character-sets

If you have fear, that the utf-8 is making the trouble, just download the message from the runtime, change the charset and send the this message with the html test-tool.

I hope that helps,

Stefan

Former Member
0 Kudos

I do not know for sure, but I would suspect that case would matter since Java is case-sensitive (unlike ABAP).

Cheers

Manish