Depending on the version of the operating system the problem is that the file has the wrong CCSID.
I assume it is 1252 ( Windows character set )
You have to change it to 1208 ( UTF-8 )
CHGATR OBJ('myFile.xml') ATR(*CCSID) VALUE(1208)
Search found 19 matches
- Thu Nov 21, 2024 7:32 am
- Forum: HTTPAPI
- Topic: BOM at start of IFS stream file
- Replies: 4
- Views: 6029
- Fri Nov 08, 2024 8:01 am
- Forum: HTTPAPI
- Topic: Object is too large to process
- Replies: 10
- Views: 9722
Re: Object is too large to process
If the file is greater than 2GB then you have to add O_LARGEFILE to the open flags You can read more about it here: https://www.ibm.com/docs/en/i/7.2?topic=ssw_ibm_i_72/apis/open.html In the IFSIO_H copy source it is defined like this: * 00100000000000000000000000000000 Large file access * (for >2GB...
- Fri Sep 20, 2024 7:28 am
- Forum: RPG IV
- Topic: XML-INTO and Max file size.
- Replies: 3
- Views: 14125
Re: XML-INTO and Max file size.
What CCSID does the file have?
And what format does it have ( Ascii, UTF-8, UTF16be ... )
If it is an UTF format then it could be the byte order markers that causes the problems.
I have experienced this before
Try to open it in Notepad++ There you can see the format.
Regards
Peder
And what format does it have ( Ascii, UTF-8, UTF16be ... )
If it is an UTF format then it could be the byte order markers that causes the problems.
I have experienced this before
Try to open it in Notepad++ There you can see the format.
Regards
Peder
- Fri Sep 13, 2024 12:24 pm
- Forum: General
- Topic: Little endian to big endian UTF-16 conversion
- Replies: 1
- Views: 5451
Little endian to big endian UTF-16 conversion
Receiving a file in UTF-16 little endian from a Windows on an as/400 ( formerly known as ) gives a practical problem that the as/400 only can handle UTF-16 big endian ( CCSID(1200) ). As far as I can see UTF-16 little endian ( CCSID(1202) ) is not supported here. The question is: Is it enough to cre...
- Thu Mar 07, 2024 7:52 am
- Forum: RPG IV
- Topic: I have a requirement to produce PDFs with large print and I am having issues, need help
- Replies: 4
- Views: 19463
- Mon Oct 30, 2023 8:15 am
- Forum: YAJL-ILE
- Topic: Determine which JSON was received.
- Replies: 2
- Views: 18589
Re: Determine which JSON was received.
A quick and dirty solution could be to open the file and read the first 1MB into a variable.
Then scan for the string "AmbiguousAddressIndicator":
If it is found then it is file 2 else it is file 1
Don't forget to close the file after reading
Then scan for the string "AmbiguousAddressIndicator":
If it is found then it is file 2 else it is file 1
Don't forget to close the file after reading

- Thu Aug 31, 2023 10:13 am
- Forum: HTTPAPI
- Topic: Timing problem
- Replies: 4
- Views: 14734
Re: Timing problem
If I understand you correct then it is the file in the IFS on your local machine that is not closed. Many years ago I had the same problem. I made a small program that tried to open the IFS file exclusively with the flags flags = O_RDONLY + O_SHARE_NONE; The program was called with the parameters 1)...
- Tue Jul 25, 2023 7:19 am
- Forum: FTPAPI
- Topic: 550 The semaphore timeout period has expired
- Replies: 7
- Views: 47596
Re: 550 The semaphore timeout period has expired
Thank you very much.
I will let it check for this error and retry every 2 seconds.
I will let it check for this error and retry every 2 seconds.
- Mon Jul 24, 2023 9:45 am
- Forum: FTPAPI
- Topic: 550 The semaphore timeout period has expired
- Replies: 7
- Views: 47596
Re: 550 The semaphore timeout period has expired
If I monitor for an error message containing "550", "semaphore" and "timeout"
as described before do you think it will cause problems?
as described before do you think it will cause problems?
- Thu Jul 20, 2023 9:48 am
- Forum: FTPAPI
- Topic: 550 The semaphore timeout period has expired
- Replies: 7
- Views: 47596
Re: 550 The semaphore timeout period has expired
Thank you very much for your thorough explanation. I will show it to one of my local Infrastructure colleagues and have a discussion with him if it is a solution to raise a ticket for our global organization. If it can not be solved there, should I check for an error message containing "550&quo...