Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^4: Lost in encodings

by LanX (Sage)
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? ;)


> 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
  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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2022-08-07 22:24 GMT
Find Nodes?
    Voting Booth?

    No recent polls found