Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: Lost in encodings

by LanX (Cardinal)
on Feb 07, 2020 at 21:13 UTC ( #11112593=note: print w/replies, xml ) Need Help??


in reply to Re^3: Lost in encodings
in thread Lost in encodings

It's verbose but will include the utf8 flag plus the dump showing the codepoints in hex. °

Which is more helpful for us than the OP's copy and paste.

> A decent print unpack 'H*',$data does the same with less fuss.

True, but unpack tells me "why" it went wrong? ;)

Update

> but displays as 'Kü',

Provided code areas in the monastery are encoded in utf8. I vividly remember problems here. *

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

*) the monastery is using windows-1252

°)

--- Testing: Täst:  "T\xE4st"
SV = PVMG(0x29c3c98) at 0x29c1fa8
  REFCNT = 1
  FLAGS = (SMG,POK,pIOK,pNOK,pPOK,UTF8)
  IV = 0
  NV = 0
  PV = 0x24c9c68 "T\303\244st"\0 [UTF8 "T\x{e4}st"]
  CUR = 5
  LEN = 10
  MAGIC = 0x2ab1b38
    MG_VIRTUAL = &PL_vtbl_utf8
    MG_TYPE = PERL_MAGIC_utf8(w)
    MG_LEN = 4

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2020-10-28 20:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (264 votes). Check out past polls.

    Notices?