ppalacio has asked for the wisdom of the Perl Monks concerning the following question:

We have an AIX server, where we have perl programs that manage conversion from UTF-8 to ISO-8859-2. We use the Text::Iconv to convert UTF-8 to hungarian characters.

So, the problem is that conversion. For example the result we got is the following:

After do a search , we get the results in XML format, after that a perl program takes it and does the conversion to HTML.

So, each title result in hunagarian language is shown. For example:

<TITLE>IBM Magyarország - ÁlláslehetÕségek </TITLE>

The only BAD Character is when the Õ is shown as a square:

<TITLE>IBM Magyarország - Álláslehetségek</TITLE>

However, I think the problem is the OS, or the Text::Iconv perl module.

Edit by tye

Replies are listed 'Best First'.
(tye)Re: UTF-8 to ISO-8859-2
by tye (Sage) on Oct 23, 2001 at 22:47 UTC

    Just to summarize some of what was discussed about this in the chatterbox. Several of us went to http://www.ibm.com/hu and did a search ("Keresés") for "thinkpad" and saw no problems. Forcing the browser's encoding to UTF-8 produced problems.

    That page sends a header of: Content-Type: text/html and it should probably be sending a content type of: Content-Type: text/html; charset=latin2 so that it doesn't rely on people's default character set in their browser. That may not be easy... (and the chatterbox discussion has started up again on this point)

            - tye (but my friends call me "Tye")