| LeoNerd | alnokta: binmode STDOUT, ":utf-8"; Hrm.. though that said, that's for STDOUT, and won't affect the commandline (the argv[] sent to system()) |
| JasonKing | I was going to say that Perl will send it in whatever it IS encoded in (in your perl script). ...probably ASCII or iso-8559-1 or -15 |
| LeoNerd | Well, that's the thing... perl strings are supposed to be transparent to such encoding issues |
| rindolf | Hi all. |
| LeoNerd | There's the binmode to specify encodings of filehandles... |
| dazjorz | Hi rindolf :) LeoNerd: does the script work yet? |
| rindolf | dazjorz: hi. what's up? |
| JasonKing | LeoNerd, kind of assumes you're not using system though. |
| LeoNerd | Not sure offhand how you'd do argv[] strings |
| dazjorz | rindolf: Still trying to get the thing working, as if something is against me |
| LeoNerd | dazjorz: what script? The tests work fine for me... So I'll need to see your test output to know what's up |
| dazjorz | LeoNerd: I mailed it to you |
| LeoNerd | Ah OKe |
| JasonKing | LeoNerd, could use open to open a pipe to the command, and then binmode that pipe FH with the desired layer. |
| dazjorz | LeoNerd: you said you would look at it last night :) |
| LeoNerd | JasonKing: But that's for a filehandle, not the argv[] strings |
| alnokta | you mean perl uses the encoding of the file itself to send the output? |
| JasonKing | LeoNerd, yeah, but you've opened a pipe, and then you..........oh, duh! |
| LeoNerd | system( "command", $string ); <== filehandles don't affect $string |
| JasonKing | LeoNerd, brain fart. |
| LeoNerd | dazjorz: I said I'd look at any mail you sent me... I've not seen one yet |
| alnokta | LeoNerd: so, i have to specify the encoding used to send? |
| JasonKing | alnokta, the consensus is that there's no way to. |
| dazjorz | LeoNerd: leonerd (A.T) leonerd . org . uk |
| alnokta | :( |
| LeoNerd | dazjorz: Ya.. when did you send that..? Maybe my spam filter ate it - I can take a look |
| dazjorz | Sent it yesterday |
| JasonKing | alnokta, why do you need it in utf-8? |
| illsci | and in perl is && right? |
| LeoNerd | Well, you'll need it in some encoding or other |
| illsci | or is it something else |
| LeoNerd | And UTF-8 is a good choice |
| JasonKing | illsci, && for tight binding, "and" for loose. |
| alnokta | JasonKing: because the text it is writing is in arabic :( |
| JasonKing | alnokta, ah - you might need to specify the utf-8 characters explicitly. |