JHG has asked for the wisdom of the Perl Monks concerning the following question:
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> <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 à ê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> <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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unusual output with french accented letters
by ikegami (Patriarch) on May 17, 2012 at 19:08 UTC | |
by JHG (Initiate) on May 22, 2012 at 14:50 UTC | |
|
Re: Unusual output with french accented letters
by locked_user sundialsvc4 (Abbot) on May 17, 2012 at 20:56 UTC | |
|
Re: Unusual output with french accented letters
by choroba (Cardinal) on May 17, 2012 at 22:58 UTC | |
|
Re: Unusual output with french accented letters
by mbethke (Hermit) on May 18, 2012 at 06:31 UTC | |
by JHG (Initiate) on May 22, 2012 at 14:35 UTC | |
by mbethke (Hermit) on May 23, 2012 at 14:49 UTC |