On Fri, 7 Jan 2005 09:59:31 -0600, Bryan Baldus <[EMAIL PROTECTED]> wrote: > Do you know if your solution will work with older (5.8.0 or 5.6.1) Perl > versions? I'm limited (on my development/home machine) to 5.8.0a (MacPerl). > I might be able to test MARC::File::XML, but I'm not sure, since I am unable > to compile any modules relying upon C (the Mac Programmer's Workshop (MPW) > freeware crashes my machine under MacOS 9.2.2, and I haven't figured out yet > how to use it in MacOS 9.1 (lack of time) [1]). As a result, I can't use > expat-based XML solutions (though I haven't really explored the issue, so I > may be wrong). There is a pure Perl parser, I believe, so I'll see if that > works. Even so, though, I realize I may be out of luck if the MacOS itself > is unable to handle Unicode (I thought 9.x implemented some Unicode > handling).
I've not tested extensively with pre-5.6 Perls, but it should be fine. The Encode module is standard in modern version, but exists for 5.0 as well. The use of Encode::encode() is really to get around issues *caused* by the modern versions' unicode-ness. You can check out a longer explaination at http://open-ils.org/blog/index.php?p=14 . Any of the pure-perl XML parsers should work fine. Once the data is written out as a stream of Unicode octets it will be read correctly. But do let me know if you encounter any issues! > > [1] I've checked the MacPerl module porters Web sites, but it doesn't appear > any binaries have been compiled since 5.6.1. > > Thank you for your assistance, > > Bryan Baldus > [EMAIL PROTECTED] > [EMAIL PROTECTED] > http://home.inwave.com/eija > -- Mike Rylander [EMAIL PROTECTED] GPLS -- PINES Development Database Developer http://open-ils.org