Issue #9019 has been updated by sarsntony (Hanwool Lee).


The file type was the problem, not the #encoding comment. sorry for the confusion.
----------------------------------------
Bug #9019: encoding: EUC-KR or EUC-JP does not seem to work
https://bugs.ruby-lang.org/issues/9019#change-42457

Author: sarsntony (Hanwool Lee)
Status: Feedback
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: 2.0.0
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


#encoding: euc-kr
puts "??????" 

ABOVE CODE returns test.rb:2: invalid multibyte char (EUC-KR)

#encoding: utf-8
puts "??????" 

ABOVE CODE returns ??????

similar behavior on euc-jp as well.


-- 
http://bugs.ruby-lang.org/