Skip to main content

Home/ ruby/ Group items tagged web

Rss Feed Group items tagged

Gran Trabajo

Web Design Hamilton is a Leading Web Design Company - 1 views

Every business should have their brand represented on the world wide web with a professionally designed website. The internet has redefined the way businesses are found and viewed. Your company web...

web design Hamilton

started by Gran Trabajo on 30 Apr 12 no follow-up yet
Vincent Tsao

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

  • ic = Iconv.new('UTF-8//IGNORE', 'UTF-8') valid_string = ic.iconv(untrusted_string)
  • 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:
1 - 4 of 4
Showing 20 items per page