Help for this page

Select Code to Download


  1. or download this
    
    use Encode;
    ...
    
    # now $html contains utf8 data instead of cp1252 data
    
  2. or download this
    
    open( HTML, "<:encoding(cp1252)", $filename );
    ...
    # now text will be converted from cp1252 to utf8
    # as it is read from the file.