How to convert from ANSEL/MARC-8 to UTF-8?

2009-01-07 Thread Michael Lackhoff
Hello, I would like to search the NLM with a Z39.50 Perl client. This is working quite well with one exception: I have not yet found a way to convert the charset to UTF-8. First I tried the standard Encode module because I thought it uses iconv and that should have a definition for ANSEL but I got

Re: How to convert from ANSEL/MARC-8 to UTF-8?

2009-01-07 Thread Galen Charlton
Hi, On Wed, Jan 7, 2009 at 11:42 AM, Michael Lackhoff wrote: > diakritics + base char to the combined character. So I still have two > characters for e.g. the > German umlauts. This might be correct UTF-8 but is not useable to > present in (X)HTML. > Is there any other option short of doing it b

RE: How to convert from ANSEL/MARC-8 to UTF-8?

2009-01-07 Thread Houghton,Andrew
> From: Galen Charlton [mailto:galen.charl...@liblime.com] > Sent: Wednesday, January 07, 2009 11:47 AM > To: Michael Lackhoff > Cc: perl4lib@perl.org > Subject: Re: How to convert from ANSEL/MARC-8 to UTF-8? > > On Wed, Jan 7, 2009 at 11:42 AM, Michael Lackhoff > wrote: > > diakritics + base cha

Re: How to convert from ANSEL/MARC-8 to UTF-8?

2009-01-07 Thread Michael Lackhoff
On 07.01.2009 17:47 Galen Charlton wrote: > You can use NFC() from Unicode::Normalize to do this (after using > MARC::Charset to do the conversion to UTF-8). Now I have got it! I had an "encode" too early and the NFC() didn't work on the UTF-8 octets. Regarding presenting it on the web: Technica