Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: UTF8 Validity

by Anonymous Monk
on Feb 22, 2008 at 11:07 UTC ( #669522=note: print w/replies, xml ) Need Help??


in reply to Re^3: UTF8 Validity
in thread UTF8 Validity

Encode::Guess is lame because the user needs to tell it which encoding the binary is.

Use Encode::Detect instead. This is the same detector used in Mozilla browsers.

Replies are listed 'Best First'.
Re^5: UTF8 Validity
by menolly (Hermit) on Feb 22, 2008 at 18:23 UTC
    I've been using Encode::Guess, but have had trouble building a suspects list for some data. However, Firefox hasn't been able to appropriately handle the problem data, either, so if Encode::Detect is the same method, I doubt it would've done any better on this data.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2020-11-29 20:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?