[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ftpapi] Issue with accented characters



I don’t use HTTPAPI myself but try to debug it to see what happens after it has received the data and before it saves
the data in the file.

 

What CCSID is it using for creating the IFS-file?

 

After saving the data in the file check the content of it using DSPF in hex mode. Are the letters “üöä” ( I assume it is them
you have problems with) converted to the right values.

 

By the way, what are the values you have and what values did you expect?

 

Regards/Peder

 

Fra: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx <ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx> På vegne af Oluwole Sowemimo
Sendt: 24. oktober 2019 13:30
Til: FTPAPI/HTTPAPI mailing list <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Emne: Re: [Ftpapi] Issue with accented characters

 

 

Yes Peder,

<?xml version="1.0" encoding="utf-8"?> is what I have in beginning of my xml file in the IFS directory, but the accented character is not translated correctly in the IFS directory prior to using XML-INTO to moving into my data structure. I have tried setting the CCSID to 1208 but still getting the same result.

 

 

On Thursday, 24 October 2019, 10:33:45 BST, Udesen, Peder <Peder.Udesen@xxxxxxxxxxxxxxx> wrote:

 

 

I assume you are saving the data as a file.

If the file contains this in the start

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

then it looks like XML-SAX in RPG doesn’t care about the CCSID.

I haven’t found anything in the documentation confirming this. But it seems to.

 

But you could try to change the files CCSID to 1208 ( UTF-8 ) and see what happens.

 

Kind regards

 

Peder

 

Fra: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx <ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx> På vegne af Oluwole Sowemimo
Sendt: 24. oktober 2019 10:49
Til: FTPAPI/HTTPAPI mailing list <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Emne: Re: [Ftpapi] Issue with accented characters

 

Hi Scott,

Thanks for getting back to me. The encoding is set to utf-8. I am not setting CCSID, do I need to set the CCSID? If yes, to what please? 

 

Kind regards 

 

Olu

 

On Wed, 23 Oct 2019 at 4:44 p.m., Scott Klement

--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi

 

 

This email and any files transmitted with it may be confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender.

--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi

-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi