Hi there, I've got a bit of a problem that I've been banging my head on for a while now..

I work in a company where our development environments are perl 5.6.0 on Redhat 7.x machines, one of our production enviroments is perl 5.005 on Redhat 7.x machines, and another production environment using 5.8.0 on Redhat 9.x machines.

We have a few different scripts that generate various "reports" using data from an Oracle database, these run on the 5.8.0 environment. This normally works fine, however, some of the data in the reports contain French characters. When generating the reports in development, test (also 5.6.0), or the 5.005 production environment, these characters show up "normally" - accents are correct etc. When generating the reports on the 5.8.0 box, the french characters either get stripped (accents are gone) or are replaced with ? characters.

I suspect that this is an i18n/unicode problem of some kind, but I'm not sure how I can "fix" it. The LANG environment variable is currently set to "en_US.iso885915" on the 5.8.0 machine(s), and en_US on all other machines. Changing the environment variable on the 5.8.0 machine results in a lot of errors like: Malformed UTF-8 character (unexpected non-continuation byte 0x70, immediately after start byte 0xe9)

Before anybody asks, modifying the enviroments to be all the same is a huge undertaking that the company is currently unwilling to spend the time to do... as much as I might like to.

update Sorry, I forgot to mention some further detail - the reports are created in various formats (pdf + html), this occurs in all formats. Reading the html generated from the production environment alongside the html generated from the development environment (same machine, same browser) still shows the problem - so it's definitely not a browser setting :)

In reply to French characters: perl 5.005 vs 5.6x vs 5.8x by the_slycer

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.