Skip to main content

Diigo Home
Home/ Groups/ ruby
Vincent Tsao

po-ru.com: Fixing invalid UTF-8 in Ruby, revisited - 0 views

  • When working with UTF-8-encoded text from an untrusted source like a web form, it’s a good idea to fix any invalid byte sequences at the first stage, to avoid breaking later processing steps that depend on valid input.



    For a long while, the Ruby idiom that I’ve been using and recommending to others is this:

  • ic = Iconv.new('UTF-8//IGNORE', 'UTF-8')
    valid_string = ic.iconv(untrusted_string)
Vincent Tsao

Ruby_Array.png (image) - 0 views

  • Vincent Tsao
     
    great conclusion
Riku Räisänen

A Teeny-weeny mp3 player using Ruby and Shoes | RubyLearning Blog - 0 views

  • Cyril Mougel
     
    How made a little application with Shoes and Ruby
  • Riku Räisänen
     
    Simple shoes example: mp3 player
Riku Räisänen

Ruby Hacking Guide - 0 views

shared by Riku Räisänen on 29 May 07 - Snapshot
  • Riku Räisänen
     
    Ruby internals
1 - 15 of 15
Showing 20 items per page
Join this group