cancel
Showing results for 
Search instead for 
Did you mean: 

Placing the file in UTF-8 format in Target Directory

Former Member
0 Kudos

Hi Experts,

Can any one please tell me how to place a file in Target Directory by PI in UTF-8 format.

It is a file to file PassThrough (no IR part) scenario and in receiver File Adapter I have used File Encoding as UTF-8

but still PI is not placing the file in UTF-8 format in the Target Directory.

Are there any modules by which the files are converted to UTF-8 format.

Can anyone please help me out.

Thanks and Regards,

Prajwal

Accepted Solutions (0)

Answers (4)

Answers (4)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Yes, TextPageConversionBean Module will resolve your issue. Specify charset value is utf-8.

Parameter name: Conversion.convert and Parameter value: utf-8

Former Member
0 Kudos

Hi Gopal,

I have used the module and also used file encoding as UTF-8 in the receiver channel.

Please let me know if I need to remove the file encoding in the receiver channel.

Thanks and Regards,

Prajwal

Former Member
0 Kudos

Hi,

Use File Type as Binary in both sender and receiver comm channel.

Also, ensure that the TextCodePageConversion module is called in the correct sequence. It should be called before CallSapAdapter in the module processing sequence tab.

Regards

Former Member
0 Kudos

Hi,

Please let me know if I need to change the TransferMode,File Type and FileEncoding in both sender and receiver channel.

I tried the below settings but still the file is not being placed in UTF-8.

Sender CHannel: TransferMode Text

FileType Text

FileEncoding UTF-8

Receiver Channel TransferMode Binary

FileType Text

FileEncoding tried with UTF-8 once and tried with blank

Can any one throw some light here.

Thanks and Regards,

Prajwal

Former Member
0 Kudos

Hi Shiladitya,

I tried the FileType as binary in both sender and receiver channels and used the module before callSapAdapter in the receiver channel but still no luck.Even now file is being placed in Non-UTF-8 format.

Thanks and Regards,

Prajwal

Former Member
0 Kudos

Try changing it in both sender and receiver channels using File Type Binary.

Also, ensure that you call the module in the proper sequnce in the receiver adapter, before CallSapAdapter step.

Former Member
0 Kudos

Follow Shiladitya Sarkar's instructions.

Check for adapter module (textconversion) sequence, must be before CallSapAdapter

Former Member
0 Kudos

Hi Spantaleoni,

I have already mentioned in my above reply that I used this textconversion module before CallSapAdapter.

Please let me know if any other things that needs to be followed.

Thanks,

Former Member
0 Kudos

Try to set in Sender CC -> Processing Parameters:

- File Type = Text

- File Encoding = UTF-8

Former Member
0 Kudos

Try this

Sender Channel:

File Type : Text

File Encoding : US-ASCII

Receiver Channel:

File Type : Text

File Encoding : UTF-8

Regards

Seshagiri

stefan_grube
Active Contributor
0 Kudos

UTF-8 is PI standard, so you have to convert the file to UTF-8 in sender channel, you need not do anything in receiver channel.

When your file is in so-called "ANSI", it is usually related to Windows character code 1252. You can try following:

sender channel: file encoding cp1252

You can also try ISO-8859-1 which is almost the same.

http://en.wikipedia.org/wiki/ISO/IEC_8859-1

Former Member
0 Kudos

hello,

check below link.

http://wiki.sdn.sap.com/wiki/display/XI/HowTo...ContentconversionmodulewithJ2EEJMS+adapter

Regards,

Phani

Former Member
0 Kudos

Use TextCodepageConversionBean with charset = UTF-8

Former Member
0 Kudos

Hi,

You can try the TextCodePageConversion module.

/people/gabrielsagayaselvam.panneerselvam/blog/2009/12/07/standard-adapter-framework-modules-afmodules-in-pi-71-150part-1

Regards

Former Member
0 Kudos

Hi,

Thanks for the reply.

I tried using the TextCodePageConversion module as explained in the above blog.

But still PI is placing the file in ANSI format only.

Can you please help me out if there are any other ways.

Thanks and Regards,

Prajwal