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

Re^3: utf file to ansi, but doesn't work?

by eff_i_g (Curate)
on Feb 28, 2011 at 15:24 UTC ( #890572=note: print w/replies, xml ) Need Help??

in reply to Re^2: utf file to ansi, but doesn't work?
in thread utf file to ansi, but doesn't work?

I don't have a hex editor
Sure you do! od -cx file

Also, have you tried Encode?

Replies are listed 'Best First'.
Re^4: utf file to ansi, but doesn't work?
by ikegami (Pope) on Feb 28, 2011 at 16:49 UTC

    He's on Windows. I'd be surprised if Notepad++ didn't have a hex mode, but one could always use Perl.

    perl -nE"BEGIN { $/=\16 } say uc unpack 'H*', $_" file

      On Windows with paths like /www and /var? I assumed he was viewing files in Notepad++ via Samba and still had terminal access (like me).

      Notepad++ has a hex plugin.

        doh! Of course he isn't. Nevermind X_X

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://890572]
[Discipulus]: good morning nuns and monks!

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2017-11-23 08:01 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (330 votes). Check out past polls.