# Shorter magic comment

**URL:** <https://www.ruby-forum.com/t/shorter-magic-comment/127257>\
**Category:** Development\
**Created:** [January 27, 2008, 5:22am UTC](https://www.ruby-forum.com/t/shorter-magic-comment/127257 "2008-01-27T05:22:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NARUSES\_Yui](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/258eb7/32.png) [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Post date:** [January 27, 2008, 5:22am UTC](https://www.ruby-forum.com/t/shorter-magic-comment/127257/1 "2008-01-27T05:22:54Z")

</div>

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

e$B:#OCBj$Ne(B magic comment  
e$B$G$9$,!“J}!9$G!V$J$2!\<$h!W!V$a$s$I$$$h!W$H$$$&@\<e(B  
e$B$r\<\*$K$7$^$9!#$=$b$=$b!”$3$l$N85%M%?$Oe(B Python  
e$B$@$H;W$&$N$G$9$,!“e(BPython  
e$B$h$j$be(B Ruby  
e$B$K$O%W%m%0%i%^!\<$NH~FA$r7s$MHw$($F$$$i$C$7$c$kJ}$,B?$$$h$&$Ke(B  
e$B;W$o$l$k$N$G!”$b$&$A$g$C$H4JN,$JI=5-$,M\_$7$$$h$&$K;W$$$^$9!#e(B  
[http://www.python.jp/doc/2.4/ref/encodings.html](http://www.python.jp/doc/2.4/ref/encodings.html)

e$B$H$j$"$($:0lHV%i%G%#%+%k$J0F$H$7$F!"e(B/^#\s\*(\S+)\s\*$/ e$B$Ne(B $1  
e$B$r%(%s%3!\<e(B  
e$B%G%#%s%0$H$\_$J$9$N$O$I$&$G$7$g$&!#e(B
