Note: I'm certain that your editor is set up for UTF-8 input from the output you received, but you should convince yourself of that too and then learn how to configure it

I do confirm that:

In Notepad++ Windows,when editor set to utf8 :

use v5.10; use Data::Dumper; use Devel::Peek; print unpack "C*",'Köln'; Dump 'Köln'; 75 195 182 108 110 #note that ö has been mapped as two bytes extended ascii values 195 #a +nd 182 SV = PV(0x27c7b54) at 0x8eef84 REFCNT = 1 FLAGS = (PADTMP,POK,READONLY,pPOK) PV = 0x8f4724 "K\303\266ln"\0 CUR = 5 LEN = 8
when editor set to iso-8859-1 :
use v5.10; use Data::Dumper; use Devel::Peek; print unpack "C*",'Köln'; Dump 'Köln'; 75 246 108 110 #note that ö is represented with a single byte extended #ascii decimal + 246 SV = PV(0x2813394) at 0x20cef84 REFCNT = 1 FLAGS = (PADTMP,POK,READONLY,pPOK) PV = 0x20d4724 "K\366ln"\0 CUR = 4 LEN = 8

In reply to Re^2: possible missunderstanding of package Encode by nikosv
in thread possible missunderstanding of package Encode by toohoo

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.