Buka

Rails decoding issue

A Quick question how to decode an html in Rails.

When I use rails to use Nokogiri::HTML to read [login to view URL]

it got some unknown html codes

e.g. T144 ====> 馬名

how to solve it or decode it?

Kemahiran: Git, HTML5, Javascript, Ruby, Ruby on Rails

Lihat lagi: ruby decode utf-8, ruby force_encoding, ruby default encoding, ruby ascii-8bit to utf-8, ruby force encoding, ruby encoding, ruby encode utf-8, ruby string encodings, attend a meeting, ruby on rails looking for a job and lviv or, ruby on rails looking for a job, interpreter needed for a meeting tomorrow, http lm facebook com lsr php u http 3a 2f 2fen nametests com 2ftest 2fresult 2fclick here you only need a bit more patience and, how to set up a meeting with a record label, get a quick help from web designer

Tentang Majikan:
( 0 ulasan ) Hong Kong, Hong Kong

ID Projek: #17331925

4 pekerja bebas membida secara purata $28 untuk pekerjaan ini

protovosolutions

Hi, We' right expertise in Ruby on Rails - [login to view URL] & would like to help you with your project but, We would be interested in looking at any specific document, so we can help you in the better manner. H Lagi

$55 USD dalam 3 hari
(33 Ulasan)
5.2
pluralcode16

Greetings!! I am glad to bid for your project. I am a software developer with an experience of more than 5 years in technologies like Ruby on Rails, Ruby, MySQL, Postgresql, Mongo/Couch No SQL, Jekyll, Heroku CS Lagi

$25 USD dalam sehari
(9 Ulasan)
4.4
bushserg

Try: data = Nokogiri::HTML(open(url), nil, Encoding::UTF_8.to_s) or Nokogiri::HTML::[login to view URL](html, Encoding::UTF_8.to_s) or other encoding

$15 USD dalam sehari
(0 Ulasan)
0.0
$15 USD dalam sehari
(0 Ulasan)
0.0