# Kconv::toeuc

**URL:** <https://www.ruby-forum.com/t/kconv-toeuc/67699>\
**Category:** Development\
**Created:** [September 6, 2006, 4:51am UTC](https://www.ruby-forum.com/t/kconv-toeuc/67699 "2006-09-06T04:51:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![OHARA\_Shigeki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/c37758/32.png) [@OHARA\_Shigeki](https://www.ruby-forum.com/u/OHARA_Shigeki)\
**Post date:** [September 6, 2006, 4:51am UTC](https://www.ruby-forum.com/t/kconv-toeuc/67699/1 "2006-09-06T04:51:05Z")

</div>

e$BBg86$G$9!#e(B

Kconv::toeuc e$B$G$9$,!"e(B  
NKF e$B$Ne(B MIME e$B%G%3!\<%I$7$J$$%\*%W%7%g%se(B (-m0)  
e$B$,$D$$$F$7$^$C$F$$$k$h$&$G$9!#e(B

e$B$\*$=$i$/!“e(B 2006-06-19 e$B$Ne(B revert  
e$B$GO3$l$,$”$C$?$N$G$O$J$$$+$H;W$$$^$9!#e(B  
tojis, tosjis, toutf8, kconv e$B$K$Oe(B (e$B@5$7$/e(B) -m  
e$B$,IU$$$F$$$^$9!#e(B

diff -ur ruby-1.8.5.orig/ext/nkf/lib/kconv.rb  
ruby-1.8.5/ext/nkf/lib/kconv.rb  
— ruby-1.8.5.orig/ext/nkf/lib/kconv.rb Mon Jun 19 23:52:54 2006  
+++ ruby-1.8.5/ext/nkf/lib/kconv.rb Wed Sep 6 11:38:09 2006  
@@ -156,7 +156,7 @@

# convert halfwidth katakana to fullwidth katakana.

# If you don’t want it, use NKF.nkf(‘-exm0’, str).

def toeuc(str)

- ::NKF::nkf(‘-em0’, str)

- ::NKF::nkf(‘-em’, str)  
end  
module\_function :toeuc

* * *

OHARA Shigeki (e$BBg86e(B e$B=E\<ye(B) [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![OHARA\_Shigeki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/c37758/32.png) [@OHARA\_Shigeki](https://www.ruby-forum.com/u/OHARA_Shigeki)\
**Post date:** [September 6, 2006, 5:23am UTC](https://www.ruby-forum.com/t/kconv-toeuc/67699/2 "2006-09-06T05:23:09Z")

</div>

e$B@.@%$G$9!#e(B

OHARA Shigeki wrote:

> e$BBg86$G$9!#e(B
> 
> Kconv::toeuc e$B$G$9$,!"e(B  
> NKF e$B$Ne(B MIME e$B%G%3!\<%I$7$J$$%\*%W%7%g%se(B (-m0) e$B$,$D$$$F$7$^$C$F$$$k$h$&$G$9!#e(B
> 
> e$B$\*$=$i$/!“e(B 2006-06-19 e$B$Ne(B revert e$B$GO3$l$,$”$C$?$N$G$O$J$$$+$H;W$$$^$9!#e(B  
> tojis, tosjis, toutf8, kconv e$B$K$Oe(B (e$B@5$7$/e(B) -m e$B$,IU$$$F$$$^$9!#e(B

e$B$&!"3N$+$KO3$l$F$^$9$M!#e(B  
1.8 e$B$He(B 1.9 e$B$G=$@5$7$^$7$?!#e(B
