Project

General

Profile

Bug #9019

Updated by nobu (Nobuyoshi Nakada) almost 10 years ago

~~~ruby 
 #encoding: euc-kr 
 puts "하이"  
 ~~~ 

  

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

 ~~~ruby 
 #encoding: utf-8 
 puts "하이"  
 ~~~ 

  

 ABOVE CODE returns `하이` 하이 

 similar behavior on euc-jp as well.

Back