cancel
Showing results for 
Search instead for 
Did you mean: 

Pound Symbol in File Sender

Former Member
0 Kudos

Hi,

We are getting a file from Sender where they are sendin the £ symbol.#

PI is unable to pick it up and goes into error.  This is an XML file and does not require any FCC.

Please advise as I can't specify any encoding in the File Sender Communication Channel.

Regards

Krish

Accepted Solutions (1)

Accepted Solutions (1)

former_member184681
Active Contributor
0 Kudos

Hi,

You don't need to use FCC to specify the required encoding of the sender channel. In your case, set "File Type" = "Text" and provide the required encoding (like ISO-8859-1, or any other, according to your requirement) as File Encoding. Both these fields are in the "Processing" tab page of the sender file communication channel:

Hope this helps,

Greg

Former Member
0 Kudos

Hi Greg,

Am a bit confused with this encoding stuff.  The XML file which I have received clearly states the following.

<?xml version="1.0" encoding="UTF-8"?>

So if i use UTF-8 in the sender comms channel, it should pick up the pound symbol. But it didn't, although it worked with your ISO-8859-1.

Regards

Anandh

former_member184681
Active Contributor
0 Kudos

Hi,

It looks like a nice guess with this ISO-8859-1, then . As a rule, whenever you have the File Type = Binary selected, PI determines the encoding based on the first line of the XML, which says "<?xml version="1.0" encoding="UTF-8"?>" in your case. When you select File Type = Text and some particular encoding, you enforce using this particular encoding to read the message.

In your particular case, it looks like the XML file is encoded with ISO-8859-1, although the first line says it's UTF-8. So you might want to analyze the sender system for some inconsistencies. Or just leave this ISO encoding as it is, to have it working fine.

Hope this helps,

Greg

Answers (1)

Answers (1)

Former Member
0 Kudos

in file sender comm channel, set file type parameter to binary and then see if it resolves the issue.

if it does not solve the issue, then try with file type - text and file encoding UTF-16 and see if it resolves the issue.

Former Member
0 Kudos

Rajeev,

The channels are already in binary mode only.  We are still getting the issues.

Regards

Krish

Former Member
0 Kudos

try with file type - text and file encoding UTF-16 and see if it resolves the issue.