Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Chicanery Needed to Handle Unicode Text on Microsoft Windows

by Anonymous Monk
on Oct 30, 2010 at 22:29 UTC ( #868516=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    :raw:perlio:encoding(UTF-16LE):crlf
    [download]
    
  2. or download this
        :raw:perlio:encoding(UTF-16LE):crlf:utf8
    
  3. or download this
    $ hd Input.txt 
    00000000  ff fe e4 00 62 00 63 00  0d 00 0a 00    |...b.c.....|
    
  4. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    my $line = <$input_fh>;
    chomp $line;
    Dump $line;
    
  5. or download this
    SV = PV(0x69ae70) at 0x605000
      REFCNT = 1
    ...
      PV = 0x6778e0 "\303\244bc"\0
      CUR = 4
      LEN = 80
    
  6. or download this
    SV = PV(0x750cb8) at 0x777cc8
      REFCNT = 1
    ...
      PV = 0x86a070 "\303\244bc"\0 [UTF8 "\x{e4}bc"]
      CUR = 4
      LEN = 80
    
  7. or download this
    open my $fh, '<:encoding(UTF-16LE)', ...
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (17)
As of 2015-07-28 19:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls