GithubHelp home page GithubHelp logo

Comments (3)

cviebrock avatar cviebrock commented on May 19, 2024

Thanks for pointing this out. I'm just on vacation for another week but will look into this when I get back.

How are you getting your UTF8 string? Is there a chance it is come from a file, or something else that might add the BOM marker to the string?

  • Colin

On Aug 16, 2014, at 10:03 AM, Navid Sedehi [email protected] wrote:

slug is empty in utf-8 title
i replace method on config file but not workin


Reply to this email directly or view it on GitHub.

from eloquent-sluggable.

morilog avatar morilog commented on May 19, 2024

sluggable is not working on utf-8 strings title.
e.g: title : "سلام دنیا"
it's slug must be "سلام-دنیا", but sluggable return null.

i was ported cakephp slug function for eloquent sluggable 1.* and its worked fine.

from eloquent-sluggable.

cviebrock avatar cviebrock commented on May 19, 2024

You can fix this by defining the method configuration value, or by overloading the generateSlug() method. In either case, you'll need a slugging "algorithm" that knows how to handle the UTF characters.

Most slugging functions/classes will either transliterate them into ASCII (since slugs are often used for URLs), or nullify them, so you may need to write your our own function.

On Aug 27, 2014, at 12:25 AM, Morteza Parvini [email protected] wrote:

sluggable is not working on utf-8 strings title.
e.g: title : "سلام دنیا"
it's slug must be "سلام-دنیا", but sluggable return null.

i was ported cakephp slug function for eloquent sluggable 1.* and its worked fine.


Reply to this email directly or view it on GitHub.

from eloquent-sluggable.

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.