# Hotmail and japanese

**URL:** <https://www.ruby-forum.com/t/hotmail-and-japanese/106855>\
**Category:** Rails\
**Created:** [June 14, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/hotmail-and-japanese/106855 "2007-06-14T18:17:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_robot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/67e7ee/32.png) [@mr\_robot](https://www.ruby-forum.com/u/mr_robot)\
**Post date:** [June 14, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/hotmail-and-japanese/106855/1 "2007-06-14T18:17:30Z")

</div>

anyone had any experience with sending japanese email to hotmail.  
if i change the encoding to Shift-JS then it comes out funy (mojabake)  
in yahoo etc.

do i need to test each email address then set the encoding  
accordingly? if so, how would i go about this

tx

---

<div class="post-metadata">

**Author:** ![mr\_robot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/67e7ee/32.png) [@mr\_robot](https://www.ruby-forum.com/u/mr_robot)\
**Post date:** [June 19, 2007, 7:28pm UTC](https://www.ruby-forum.com/t/hotmail-and-japanese/106855/2 "2007-06-19T19:28:24Z")

</div>

ok. worked it out. maybe this will helpsomeone in the future:

in my notifier

s = StringScanner.new(user\_email)  
if s.exist? /hotmail/  
@charset = “EUC”  
else  
@charset = “utf-8”  
end
