cancel
Showing results for 
Search instead for 
Did you mean: 

Convert UTF-16 to UTF-8

Former Member
0 Kudos

Hi

My source file is UTF-16 and Target file is UTF-8. I am using XSLT mapping . If i m testing in Altova XML its working fine. But when i am testing the same thing using my scenario its not wroking.

I have tested this using Test option in ID. If i change the UTF-16 to UTF-8 while testing in ID but if i m trying to change it directly in XML file its not accepting.

How to change UTF-16 to UTF-8 while XSLT mapping. How to reslove this problem

Regards

Sowmya

Accepted Solutions (1)

Accepted Solutions (1)

former_member190389
Active Contributor
0 Kudos

Hi ,

You can use

the

<xsl:output method="xml" version="1.1" encoding="utf-8"/>

tag..

Also see:

http://www.knowhowsapxi.synthasite.com/convert-source-structure-into-single-node.php

Answers (2)

Answers (2)

Former Member
0 Kudos

thank u

Former Member
0 Kudos

Hello

you can change UTF-16 to UTF-8 in the Mapping while imprting XSL file as the option is given in panel . you select the basic encoding format from there itself .

Regard's

Chetan Ahuja

Edited by: Chetan Ahuja on Jul 30, 2008 6:56 AM

Former Member
0 Kudos

Hi

I have imported the XSD which is UTF-8 and I am getting the xml file from same vendor which has UTF-16. Now how to convert this...

How to change the optional while importing XSL

Regards

Sowmya

Former Member
0 Kudos

Which Adapter you are using?

If you are using the file adapter then you can use the File adapter property as file.encoding=<codepage>

you can refer to below link

http://help.sap.com/saphelp_nw04/helpdata/en/0d/00453c91f37151e10000000a11402f/frameset.htm

Gaurav Jain

Former Member
0 Kudos

Hi

I am using simple file adapter.

I am getting the XML file which has different encoding charecter

Regards

sowmya