Hello,
I've a character coding pb with DOS command and perl.
1) I generate a file by the system command Perl :
system("VisualSourceSafe command... > file");
2) I read the file and put out a variable corresponding to a line of the file. I post this variable recovered with the Perl command print:
print ("$Variable"); -> "Documentation/Base de donnée/Contraintes.xls"
3) I launch a new system command Perl with this variable :
system("VisualSourceSafe history $variable");
But the variable after the command post is : "Documentation/Base de donn' e/Contraintes.xls".
The program plants because "é" was modified in "'".
Can you give me a way?
Thank you.
FB
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.