Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Problem with utf8 after nearly 4096 bytes

by gvieira (Initiate)
on Sep 08, 2013 at 03:05 UTC ( [id://1052860]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Problem with utf8 after nearly 4096 bytes
in thread Problem with utf8 after nearly 4096 bytes

You have a point. Even without BOM the program still recognize that the first block is in utf8. How could he don't think the same of the rest of the file?

There any way I can print these en dashs on file? Maybe using her hex value?

  • Comment on Re^3: Problem with utf8 after nearly 4096 bytes

Replies are listed 'Best First'.
Re^4: Problem with utf8 after nearly 4096 bytes
by farang (Chaplain) on Sep 09, 2013 at 04:14 UTC

    You have a point. Even without BOM the program still recognize that the first block is in utf8. How could he don't think the same of the rest of the file?
    That's just it, Perl will threat the whole file as utf-8. It seems you are likely corrupting the file during upload. If you post the relevant code you are using to handle the upload, probably some monks can either see what's wrong with it or give a alternate approach for uploading which avoids the problem.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2024-04-23 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found