w10schools
Login Register
  • Home
  • Tutorials
    • HTML, CSS
      • HTML, HTML5
      • CSS, CSS3
    • XML
    • JavaScript, AJAX
    • PHP
    • Ruby on Rails
      • Ruby
      • Rails
    • ASP.NET
      • ASP
      • C# .NET
    • Java
      • JSP
    • Databases
      • MySQL
      • MSSQL Server
      • Oracle
    • Web Server
      • Windows
      • Linux
      • Apache
      • IIS
    • Design
      • Dreamweaver
      • Flash
      • Photoshop
      • Fireworks
      • CorelDRAW
      • Illustrator
  • References
    • HTML
      • Bootstrap
    • CSS
      • CSS Selectors
      • Sass
    • JavaScript
    • Mobile Apps
      • Cordova
    • Ruby on Rails
      • Ruby
      • Rails
    • PHP
      • Function
      • Language
      • CodeIgniter
      • Phalcon
      • PHPUnit
      • Symfony
      • Drupal
      • Yii
      • Laravel
    • Perl
      • Perl
    • Python
      • Python
      • Django
      • NumPy
      • Pandas
      • scikit-image
      • scikit-learn
      • Statsmodels
      • Matplotlib
    • Lua
      • Lua
    • C, C++
      • C
      • C++
    • Server
      • Docker
      • Apache HTTP Server
      • Nginx
    • Database
      • PostgreSQL
    • Big Data
      • TensorFlow
    • Game Development
      • Phaser
      • LÖVE
  • Articles
    • News
    • General
      • Website Promotion
      • Online Advertising
      • Make Money Online
    • Editorials
    • Interviews
    • Web Roundups
  • Resources
    • Design
      • Fonts
      • Graphics
      • Vectors
      • Templates
      • UI (User Interface)
      • Brushes
      • Patterns, Backgrounds
      • Textures
    • Web Development
      • HTML, CSS
      • XML
      • JavaScript, AJAX
      • Ruby on Rails
      • PHP
      • Java
      • .NET
      • Python
      • Perl
      • Flash
    • Mobile Application Development
      • Mobile Development Tools
      • Swift
    • Online Services
      • Online Storage
      • Web Hosting
  • Tools
    • Generators
Edit
In Place Editing Advanced Editing
  • References
  • Ruby on Rails
  • Ruby
  • Classes
  • RDoc
  • RDoc::Encoding

set_encoding

set_encoding(string)
Class Public methods

Sets the encoding of string based on the magic comment

Links:
  • https://github.com/ruby/ruby/blob/dff59f6c5df7d995d02e8173a8ce42ff9c552e88/lib/rdoc/encoding.rb#L76
doc_ruby_on_rails
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.

Popular Articles
set_encoding io.set_encoding(ext_enc) â ioio.set_encoding("ext_enc:int_enc") â ioio.set_encoding(ext_enc, int_enc) â ioio.set_encodi
set_encoding strio.set_encoding(ext_enc, [int_enc[, opt]]) => strio Instance Public methods Specify the encoding of the StringIO as ext_enc. Use
set_encoding ARGF.set_encoding(ext_enc) â ARGFARGF.set_encoding("ext_enc:int_enc") â ARGFARGF.set_encoding(ext_enc, int_enc) â ARGFA
tidy_set_encoding (PECL tidy >= 0.5.2) Set the input/output character encoding for parsing markup bool tidy_set_e
fdf_set_encoding (PHP 4 >= 4.0.7, PHP 5, PHP 7) Sets FDF character encoding bool fdf_set_encoding ( resource $fd


Return to View
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions