The perl application I wrote with Komodo on a MAC OS 10.6 reads hundreds of plain .txt files, and does wrap HTML tags around the text and prints the aggregated lines that I paste into a single .htm file which is rather long since it compresses hundred of files so to speak.

The logic of my code, the outcome, everything is as expected BUT for the fact that PERL from time to time spit junk characters.

<p><p style="font-size: 20px; font-weight: bold;">Rhombe de iambe</p> <br>&nbsp;<br />Au cinq &#8730;©toiles ou au tripot<br /> Oncques je ne manque de sortir mon tricot<br /> Ainsi j‚Äôappelle ces carnets o&#8730;&#960; je griffonne<br /> Seul &#8730;† &#8730;™tre seul en ces lieux cacophones<br />

instead of the correct accented letters used in French langage

<p><p style="font-size: 20px; font-weight: bold;">Rhombe de iambe</p> <br>&nbsp;<br />Au cinq étoiles ou au tripot<br /> Oncques je ne manque de sortir mon tricot<br /> Ainsi j'appelle ces carnets où je griffonne<br /> Seul seul à être seul en ces lieux cacophones<br />

There is no consticency in this happening since accented letters are ubiquitous in every .txt files from which the text originate and when I rerun the same code on the same .txt files, the junk can affect the same portion of text or not or appear elswhere or nowhere if I reduce the number of .txt files I start with. It does not start at the beginning of a text file, but can start in the middle of it after a number of correctly accented letters, then it affect the rest of the text and the next ones, 4 of 5, then it stops and the letters are correctly accented again.....

Extremely obnoxious HELP please!


In reply to Unusual output with french accented letters by JHG

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.