DDCODE

Share programming skills from Magic Oriental

upArrow

What version of ruby does not need to add #encoding=UTF-8 at first

 May 11, 2019   question, ruby

This is how I write it

#!  /usr/bin/ruby
 Puts "I Love China";

It’s ok too. My version is

ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]

Ruby 2.0.0-p0It started.

The UTF-8 default encoding, which make many magic comments omissible

Related Posts:

  • Why is charset="UTF-8 "Chinese or garbled? And the…
  • When creating a new table with navicat, the encoding…
  • When creating a new table with navicat, the encoding…
  • Myeclipse encoding conversion, I started to use the…
  • C++ Programming ascll Version or unicode Version…
  • Brew install ruby successfully installed ruby-2.2.3…
  • How can utf-8 format files be converted into…
  • Does this utf8_general_ci in mysql have no BOM…
  • Does this utf8_general_ci in mysql have no BOM…
<< Update Operations for Secondary Resources in rails Jekyll serve startup reported an error, error:permission denied -bind(2) >>

Related Posts:

  • Why is charset="UTF-8 "Chinese or garbled? And the…
  • When creating a new table with navicat, the encoding…
  • When creating a new table with navicat, the encoding…
  • Myeclipse encoding conversion, I started to use the…
  • C++ Programming ascll Version or unicode Version…
  • Brew install ruby successfully installed ruby-2.2.3…
  • How can utf-8 format files be converted into…
  • Does this utf8_general_ci in mysql have no BOM…
  • Does this utf8_general_ci in mysql have no BOM…

Tags

Android android-studio apache c c++ centos Css css3 Database Docker Eclipse Express Front end git GitHub golang Html html5 Ios java javascript Jquery Laravel linux macos mongodb mysql Nginx node.js npm objective-c php Programmer python redis ruby shell Spring Sql Swift ubuntu vim vue.js Web xcode

Powered by MyWiki WordPress Theme