Git Product home page Git Product logo

Comments (9)

gharlan avatar gharlan commented on August 16, 2024 1

Thanks @lbassin for the pull request!

from polyfill.

nicolas-grekas avatar nicolas-grekas commented on August 16, 2024

why not :) do you have code?

from polyfill.

keradus avatar keradus commented on August 16, 2024

why not.
perhaps https://github.com/true/php-punycode ?

from polyfill.

gharlan avatar gharlan commented on August 16, 2024

do you have code?

Not yet. And I'm not sure, if I am able to do this. But maybe I will try.

perhaps https://github.com/true/php-punycode ?

I guess we have to re-implement this to be compatible with the original functions.

Should the polyfill support the deprecated variant INTL_IDNA_VARIANT_2003? (I don't think so)

from polyfill.

nicolas-grekas avatar nicolas-grekas commented on August 16, 2024

It's OK to have a partial polyfill, so no, no need to support deprecated features (and if someone comes with a PR later, fine :) )

from polyfill.

gharlan avatar gharlan commented on August 16, 2024

This is the php-src part of the functions: https://github.com/php/php-src/blob/master/ext/intl/idn/idn.c
But the main conversion is done by functions uidna_nameToASCII_UTF8 and uidna_nameToUnicodeUTF8 from ICU.

from polyfill.

keradus avatar keradus commented on August 16, 2024

I guess we have to re-implement this to be compatible with the original functions.

well, they tried to be compatible.

we can cover it with tests, sure, see what's missing
simply, there may be no need to reimplement everything from scratch

from polyfill.

gharlan avatar gharlan commented on August 16, 2024

simply, there may be no need to reimplement everything from scratch

Would be very nice!

But:

from polyfill.

nicolas-grekas avatar nicolas-grekas commented on August 16, 2024

See true/php-punycode#28

from polyfill.

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.