Perl
#!perl -w use strict; print("hoge\n");
Python
import sys with open('hoge.txt', 'r', encoding='cp932') as fp: src = fp.readlines()