Hi All,
  I've moved from a redhat 9 to a Fedora core 3 server. Now something is causing me problems. Fedora seems to have a problem with the broken pipe which unfortunately I use quite a lot ¦.
I have a separate variables file with the line:-
$requiredjoinfields = "name¦address1¦city¦area¦postcode¦country";
If I upload this file all works fine. Now the problem is when I have this variable appear in a text box in a browser. Instead of name¦address1, etc, it has name?address1, etc. This text box is linked to a save routine that saves the value of the text box back to the variables file.
If I don't change a thing and just save, it changes to:-
name�address1�
If I change the ? in the text box to ¦ and save, it changes to:-
name¦address1¦
????? Does that make any sence to anyone. I checked the $LANG setting which was en_US.UTF-8, so I tried changing it to en_US but it made no difference.
Stranger still if I download the file off the server and open it locally, it opens as:-
name¦address1¦
If I upload this file back, it makes no changes. If I use nano through SSH to remove the  before the pipes the script works properly again, but it still shows in the browser as name?address1?.

I'm going mad. Please tell me someone is familiar with this and has somethign I can do to stop it? (Apart from not using broken pipe as I've used it in almost all the scripts I've ever made!

Lyle

In reply to Fedora and broken pipe ¦ by cosmicperl

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.