Search found 22 matches
- Tue Apr 08, 2025 6:32 am
- Forum: RPG IV
- Topic: XML-SAX failed with error code 6
- Replies: 3
- Views: 61658
Re: XML-SAX failed with error code 6
Does anybody have a good idea how to handle this?
- Thu Mar 27, 2025 9:44 am
- Forum: RPG IV
- Topic: XML-SAX failed with error code 6
- Replies: 3
- Views: 61658
Re: XML-SAX failed with error code 6
In the documentation for XML-SAX it is possible to specify that the data passed to
the XML-handler is in a certain CCSID. So it is possible to specify CCSID=1208 ( UTF-8 )
P xmlHandler B
D xmlHandler PI 10i 0
D ignore 1a
D event 10i 0 value
D string * value
D stringLen 20i 0 value
D ...
the XML-handler is in a certain CCSID. So it is possible to specify CCSID=1208 ( UTF-8 )
P xmlHandler B
D xmlHandler PI 10i 0
D ignore 1a
D event 10i 0 value
D string * value
D stringLen 20i 0 value
D ...
- Tue Mar 25, 2025 7:47 am
- Forum: RPG IV
- Topic: XML-SAX failed with error code 6
- Replies: 3
- Views: 61658
XML-SAX failed with error code 6
Yesterday I had an RPG-program where the XML-SAX command failed with error code 6.
After googling what this means, I found out that the cause was a character that couldn't
be converted from UTF-8 to EBCDIC. I think it was the "hat" ^
character that somebody had hit accidently.
This program is ...
After googling what this means, I found out that the cause was a character that couldn't
be converted from UTF-8 to EBCDIC. I think it was the "hat" ^
character that somebody had hit accidently.
This program is ...
- Thu Nov 21, 2024 7:32 am
- Forum: HTTPAPI
- Topic: BOM at start of IFS stream file
- Replies: 4
- Views: 33723
Re: BOM at start of IFS stream file
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)
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)
- Fri Nov 08, 2024 8:01 am
- Forum: HTTPAPI
- Topic: Object is too large to process
- Replies: 10
- Views: 61622
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 ...
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 ...
- Fri Sep 20, 2024 7:28 am
- Forum: RPG IV
- Topic: XML-INTO and Max file size.
- Replies: 3
- Views: 35880
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: 17910
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 ...
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 ...
- 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: 43090
- Mon Oct 30, 2023 8:15 am
- Forum: YAJL-ILE
- Topic: Determine which JSON was received.
- Replies: 2
- Views: 21635
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: 19685
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 ...
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 ...