Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Parse a special symbol

by stefbv (Curate)
on Jun 07, 2013 at 08:38 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2021-08-02 00:38 GMT
Find Nodes?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)

    Results (16 votes). Check out past polls.