åbn

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?

Evner: Git, HMLT5, Javascript, Ruby, Ruby on Rails

Se mere: 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

Om arbejdsgiveren:
( 0 bedømmelser ) Hong Kong, Hong Kong

Projekt ID: #17331925

4 freelancere byder i gennemsnit $28 på dette job

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 Flere

$55 USD in 3 dage
(33 bedømmelser)
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 Flere

$25 USD på 1 dag
(9 bedømmelser)
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 på 1 dag
(0 bedømmelser)
0.0
$15 USD på 1 dag
(0 bedømmelser)
0.0