|
<<SNIP>>
XML has its own mechanism for specifying its encoding. There's a tag that reads something like this:
<?xml version="1.0" encoding="utf-8"?>
A program is supposed to read that tag to determine the encoding --
but the RPG parsers ignore it completely. This is problematic because
some folks (many folks!) get their XML data transferred from Windows,
Unix, etc, and the XML data is sent with a tool like FTP, Windows
Networking, SSH or (most commonly) HTTP. Most of these file transfer
methods have no knowledge of CCSIDs and do not ensure that the CCSID
on the i5 is set to the right encoding. Your customers can't be
expected to make sure the data is encoded a special way! That's one
of the big advantages of XML: The data is self-describing. So to
handle XML properly, you'd have to write a program that reads the
opening <?xml tag and determines the right encoding for you. Seems
cumbersome to me!
<<SNIP>>
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.