Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Parse a special symbol

by stefbv (Curate)
on Jun 07, 2013 at 08:38 UTC ( [id://1037628]=note: print w/replies, xml ) Need Help??


in reply to Parse a special symbol

You have to provide more information in order for any of us to be able to respond.

From where does the string come from?

  • a file? (the encoding is UTF-8, iso-8859-1, ...?);
  • user input?;
  • embeded in the source of the script? (a label maybe?);

The operating system you use?

Regards, Stefan

Replies are listed 'Best First'.
Re^2: Parse a special symbol
by auhakim (Novice) on Jun 07, 2013 at 08:50 UTC

    basically its just a variable

    my $rest = "l'événement";

    I tried to print that variable and what i get is a big mess

      1. Set your text editor to save things as utf-8 (if not already set so)
      2. use utf8;
      3. set your output encoding correctly: binmode(STDOUT, ":encoding(utf-8)");
      The rest depends on your terminal.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1037628]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-24 08:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found