Giter Site home page Giter Site logo

Comments (9)

nengine avatar nengine commented on June 11, 2024

@taganaka @tmaier, For some reason, if I use the code below in 0.5.0 non english unicode characters would show properly

    def doc
      return @doc if @doc
      @doc = Nokogiri::HTML(@body) if @body && html? rescue nil
    end

however this one would not. I'm not so sure what this function intended to do solve. Any suggestion is appreciated as I like to use 0.5.0 without monkey patching to the gem on my server. Thanks a lot.

def doc
      return @doc if @doc
      @body ||= ''
      @body = @body.encode('utf-8', 'binary', invalid: :replace,
                                              undef: :replace, replace: '')
      @doc = Nokogiri::HTML(@body.toutf8, nil, 'utf-8') if @body && html?
    end

from polipus.

nengine avatar nengine commented on June 11, 2024

Text inside <title> appear correctly in 0.4.0

<title>လူကုန်ကူးခံရသူတွေရဲ့ဘဝခရီး - BBC ပင်မစာမျက်နှာ</title>

Text inside <title> gone in 0.5.0. Only English text remains.

<title> - BBC </title>

from polipus.

taganaka avatar taganaka commented on June 11, 2024

I'll take a look at this soon

Thanks for reporting

from polipus.

nengine avatar nengine commented on June 11, 2024

Thank you.

Sent from my iPhone

On Aug 31, 2015, at 3:32 AM, Francesco Laurita [email protected] wrote:

I'll take a look at this soon

Thanks for reporting


Reply to this email directly or view it on GitHub.

from polipus.

nengine avatar nengine commented on June 11, 2024

Hi taganaka, Please let me know if you had a chance to look into?

from polipus.

tmaier avatar tmaier commented on June 11, 2024

I am trying to upgrade to 0.5.1 and saw the same issue.
This is a regression of #40.

from polipus.

nengine avatar nengine commented on June 11, 2024

I don't think this project is maintained anymore.

from polipus.

taganaka avatar taganaka commented on June 11, 2024

from polipus.

nengine avatar nengine commented on June 11, 2024

Ok Great. I didn't see activity for nearly 2 years so just thought it was not maintained anymore.

from polipus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.