Re: OT: Perl & UTF-8

2002-01-17 Thread Henry House
On Mon, Jan 14, 2002 at 09:32:02AM +0100, Holger Rauch wrote: [...] > My problem was that I wanted to substitute element content in XML files by > entity references. These entity references are referring to the values of > a Java .properties file that's used for i18n of our Java software. In > orde

Re: OT: Perl & UTF-8

2002-01-16 Thread Jaldhar H. Vyas
On Mon, 14 Jan 2002, Holger Rauch wrote: > As far as I understand, the > two Perl modules are able to set the encoding for individual strings. I'm > wondering whether there is a module that allows me to set the encoding for > a filehandle? > I don't know. Maybe you could subclass IO::Handle or s

Re: OT: Perl & UTF-8

2002-01-14 Thread Holger Rauch
Hi Jaldhar! Thanks for your quick reply! On Sun, 13 Jan 2002, Jaldhar H. Vyas wrote: > [...] > Well, I don't exactly remember what your problem was but if it is > converting strings from an ISO encoding to Unicode or vice-versa then yes > they should do the trick. My problem was that I wanted

Re: OT: Perl & UTF-8

2002-01-13 Thread Jaldhar H. Vyas
On Sun, 13 Jan 2002, Holger Rauch wrote: > libunicode-string-perl - Perl modules for Unicode strings > libunicode-map8-perl - Perl module to map 8bit character sets to Unicode > > Does anybody have experience using these two Perl modules? Could they be a > solution to the problem I'm having? > Wel

Re: OT: Perl & UTF-8

2002-01-13 Thread Holger Rauch
Hi Henry! Thanks a lot for replying! On Sat, 12 Jan 2002, Henry House wrote: > [...] > Perl 5.6 has EXPERIMENTAL UTF-8 support. There are bugs. If possible, you > should use iconv to convert the files to an ISO 8859 encoding before > processing. In the likely event that that is not possible, yo

Re: OT: Perl & UTF-8

2002-01-12 Thread Henry House
On Sun, Jan 06, 2002 at 08:06:38PM +0100, Holger Rauch wrote: > Hi! > > I want to substitute element content by entity references in UTF-8 encoded > XML files using Perl. My script currently only works with ISO 8859 > encodings. Is there a module that can be used in Perl scripts that > correctly r

Re: OT: Perl & UTF-8

2002-01-12 Thread dman
On Sat, Jan 12, 2002 at 05:42:31PM +0100, Holger Rauch wrote: | Hi! | | Thanks for your reply! | | On Sun, 6 Jan 2002, dman wrote: | | > [...] | > So the regexps you're using are in a 8859-n source file, right? | | Yep. | | > Can perl handle UTF-8 source files? | | Don't know. That's why I

Re: OT: Perl & UTF-8

2002-01-12 Thread Holger Rauch
Hi! Thanks for your reply! On Sun, 6 Jan 2002, dman wrote: > [...] > So the regexps you're using are in a 8859-n source file, right? Yep. > Can perl handle UTF-8 source files? Don't know. That's why I mailed this question ;-) > Are you trying to use things like the > posix character class

Re: OT: Perl & UTF-8

2002-01-06 Thread dman
On Sun, Jan 06, 2002 at 08:06:38PM +0100, Holger Rauch wrote: | Hi! | | I want to substitute element content by entity references in UTF-8 encoded | XML files using Perl. My script currently only works with ISO 8859 | encodings. Is there a module that can be used in Perl scripts that | correctly r

OT: Perl & UTF-8

2002-01-06 Thread Holger Rauch
Hi! I want to substitute element content by entity references in UTF-8 encoded XML files using Perl. My script currently only works with ISO 8859 encodings. Is there a module that can be used in Perl scripts that correctly reads and writes files according to specified encoding? If so, what's the n