Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: decoding a UTF-16B string found in an email subject

by Anonymous Monk
on Mar 18, 2014 at 12:53 UTC ( [id://1078776]=note: print w/replies, xml ) Need Help??


in reply to Re^2: decoding a UTF-16B string found in an email subject
in thread decoding a UTF-16B string found in an email subject

According to all docs I've found, a BOM is not necessary, and when a BOM is not present then big-endian is supposed. However the string you give seems to be little-endian (as is the case in the problem that got me to this page...). If you s/UTF-16/UTF-16LE/ then your string gets decoded correctly.
  • Comment on Re^3: decoding a UTF-16B string found in an email subject

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-26 02:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found