|
Are you sure this is even a problem Jim - or are you assuming it will be?
I had this issue many years ago and IBM put out a PTF that made the IFS
I/O system recognize the presence of a BOM and automatically ignore it. I
have never had a problem since.
Jon Paris
www.partner400.com
www.SystemiDeveloper.com
On Jul 26, 2017, at 11:08 AM, Jim Franz <franz9000@xxxxxxxxx> wrote:some
Our problem is we have no control over the source of our input files -
are processed via cpyfrmxxx commands, some are read from the ifs (someRPG,
some java, where the pgmr never handled extra bytes (BOM) up front. Havethe
not tried a BOM encoded file in cpyfrmxxx so not sure if will handle it.
We get files from other systems (mostly nix, win) but also getting input
from user downloads from web portals, and that is where we are finding
issue. Training can only go so far - I tried explaining "encoding" to aby
manager -
I guess we will have to "pre-inspect" the data before processing...
Someone wrote some java code a decade ago to parse some of the files and
all we got was "unknown exception..."
Jim
On Wed, Jul 26, 2017 at 9:40 AM, Charles Wilt <charles.wilt@xxxxxxxxx>
wrote:
Seems unlikely....
If there was some external characteristic that could be shown, then you
wouldn't need the BOM in the first place.
I suppose IBM i in particular could watch as the file is written, then
update some non-standard attribute. But I'm pretty sure that doesn't
happen.
Heck the non-standard CCSID attribute is just a promise to the OS made
listthe user. The OS doesn't assign it.
Charles
On Wed, Jul 26, 2017 at 6:55 AM, Jim Franz <franz9000@xxxxxxxxx> wrote:
Is it possible to tell (from an OS command or api) that a UTF encodedfile
has BOM characters before reading the file?list
For those not familiar with BOM -
https://en.wikipedia.org/wiki/Byte_order_mark
Jim
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
listTo post a message email: MIDRANGE-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxxquestions.
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
link: http://amzn.to/2dEadiD
Help support midrange.com by shopping at amazon.com with our affiliate
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.