Bug #9019

encoding: EUC-KR or EUC-JP does not seem to work

Added by Hanwool Lee over 1 year ago. Updated 10 months ago.

[ruby-core:57846]
Status:Rejected
Priority:Normal
Assignee:-
ruby -v:2.0.0 Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Description

#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.

History

#1 Updated by Nobuyoshi Nakada over 1 year ago

  • Status changed from Open to Feedback

Is that file saved in EUC-KR?

#2 Updated by Hanwool Lee over 1 year ago

The file type was the problem, not the #encoding comment. sorry for the confusion.

#3 Updated by Nobuyoshi Nakada 10 months ago

  • Description updated (diff)
  • Status changed from Feedback to Rejected

Also available in: Atom PDF